FloatingActionButton

fun FloatingActionButton(onClick: () -> Unit, modifier: Modifier = Modifier, shape: Shape = CircleShape, containerColor: Color = MiuixTheme.colorScheme.primary, shadowElevation: Dp = FloatingActionButtonDefaults.ShadowElevation, minWidth: Dp = FloatingActionButtonDefaults.MinWidth, minHeight: Dp = FloatingActionButtonDefaults.MinHeight, content: @Composable () -> Unit)

A FloatingActionButton component with Miuix style.

Parameters

onClick

The callback when the FloatingActionButton is clicked.

modifier

The modifier to be applied to the FloatingActionButton.

shape

The shape of the FloatingActionButton.

containerColor

The color of the FloatingActionButton.

shadowElevation

The shadow elevation of the FloatingActionButton.

minWidth

The minimum width of the FloatingActionButton.

minHeight

The minimum height of the FloatingActionButton.

content

The Composable content of the FloatingActionButton.