buttonElevation

@Composable
fun buttonElevation(defaultElevation: Dp = FilledButtonTokens.ContainerElevation, pressedElevation: Dp = FilledButtonTokens.PressedContainerElevation, focusedElevation: Dp = FilledButtonTokens.FocusContainerElevation, hoveredElevation: Dp = FilledButtonTokens.HoverContainerElevation, disabledElevation: Dp = FilledButtonTokens.DisabledContainerElevation): ButtonElevation

Creates a ButtonElevation that will animate between the provided values according to the Material specification for a Button.

Parameters

defaultElevation

the elevation used when the Button is enabled, and has no other Interactions.

pressedElevation

the elevation used when this Button is enabled and pressed.

focusedElevation

the elevation used when the Button is enabled and focused.

hoveredElevation

the elevation used when the Button is enabled and hovered.

disabledElevation

the elevation used when the Button is not enabled.