VibrantFloatingActionButton

@Composable
fun VibrantFloatingActionButton(onClick: () -> Unit, modifier: Modifier = Modifier, shape: Shape = FloatingActionButtonDefaults.shape, containerColor: Color = vibrantFloatingToolbarColors().fabContainerColor, contentColor: Color = vibrantFloatingToolbarColors().fabContentColor, interactionSource: MutableInteractionSource? = null, content: @Composable () -> Unit)

Creates a FloatingActionButton that represents a toolbar floating action button with vibrant colors.

The FAB's elevation and size will be controlled by the floating toolbar, so it's applied with a Modifier.fillMaxSize.

Parameters

onClick

called when this FAB is clicked

modifier

the Modifier to be applied to this FAB

shape

defines the shape of this FAB's container and shadow

containerColor

the color used for the background of this FAB. Defaults to the FloatingToolbarColors.fabContainerColor from the vibrantFloatingToolbarColors.

contentColor

the preferred color for content inside this FAB. Defaults to the FloatingToolbarColors.fabContentColor from the vibrantFloatingToolbarColors.

interactionSource

an optional hoisted MutableInteractionSource for observing and emitting Interactions for this FAB. You can use this to change the FAB's appearance or preview the FAB in different states. Note that if null is provided, interactions will still happen internally.

content

the content of this FAB, typically an Icon