Floating Action Button
fun FloatingActionButton(onClick: () -> Unit, modifier: Modifier = Modifier, shape: Shape = CircleShape, containerColor: Color = COUITheme.colorScheme.primary, shadowElevation: Dp = FloatingActionButtonDefaults.ShadowElevation, minWidth: Dp = FloatingActionButtonDefaults.MinWidth, minHeight: Dp = FloatingActionButtonDefaults.MinHeight, interactionSource: MutableInteractionSource? = null, content: @Composable () -> Unit)
A FloatingActionButton component with COUI style.
While pressed, the whole button springs down to FloatingActionButtonDefaults.PressedScale (COUIPressFeedbackHelper); the pressed tint overlay comes from LocalIndication.
Parameters
on Click
The callback when the FloatingActionButton is clicked.
modifier
The modifier to be applied to the FloatingActionButton.
shape
The shape of the FloatingActionButton.
container Color
The color of the FloatingActionButton.
shadow Elevation
The shadow elevation of the FloatingActionButton.
min Width
The minimum width of the FloatingActionButton.
min Height
The minimum height of the FloatingActionButton.
interaction Source
The MutableInteractionSource to be used for the FloatingActionButton.
content
The Composable content of the FloatingActionButton.