elevatedButtonElevation

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

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

Parameters

defaultElevation

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

pressedElevation

the elevation used when this ElevatedButton is enabled and pressed.

focusedElevation

the elevation used when the ElevatedButton is enabled and focused.

hoveredElevation

the elevation used when the ElevatedButton is enabled and hovered.

disabledElevation

the elevation used when the ElevatedButton is not enabled.