elevation

@Composable
fun elevation(defaultElevation: Dp = FabPrimaryTokens.ContainerElevation, pressedElevation: Dp = FabPrimaryTokens.PressedContainerElevation, focusedElevation: Dp = FabPrimaryTokens.FocusContainerElevation, hoveredElevation: Dp = FabPrimaryTokens.HoverContainerElevation): FloatingActionButtonElevation

Creates a FloatingActionButtonElevation that represents the elevation of a FloatingActionButton in different states. For use cases in which a less prominent FloatingActionButton is possible consider the loweredElevation.

Parameters

defaultElevation

the elevation used when the FloatingActionButton has no other Interactions.

pressedElevation

the elevation used when the FloatingActionButton is pressed.

focusedElevation

the elevation used when the FloatingActionButton is focused.

hoveredElevation

the elevation used when the FloatingActionButton is hovered.