FloatingToolbar

fun FloatingToolbar(modifier: Modifier = Modifier, color: Color = FloatingToolbarDefaults.defaultColor(), cornerRadius: Dp = FloatingToolbarDefaults.CornerRadius, outSidePadding: PaddingValues = FloatingToolbarDefaults.OutSidePadding, shadowElevation: Dp = 4.dp, showDivider: Boolean = false, content: @Composable () -> Unit)

A FloatingToolbar that renders its content in a Card, arranged either horizontally or vertically. The actual placement on screen is handled by the parent, typically Scaffold.

Parameters

modifier

The modifier to be applied to the FloatingToolbar.

color

Background color of the FloatingToolbar.

cornerRadius

Corner radius of the FloatingToolbar.

outSidePadding

Padding outside the FloatingToolbar.

shadowElevation

The shadow elevation of the FloatingToolbar.

showDivider

Whether to show the divider line around the FloatingToolbar.

content

The Composable content of the FloatingToolbar.