elevation

@Composable
fun elevation(defaultElevation: Dp = 2.dp, pressedElevation: Dp = 8.dp, disabledElevation: Dp = 0.dp): ButtonElevation

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

Parameters

defaultElevation

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

pressedElevation

the elevation to use when the Button is enabled and is pressed.

disabledElevation

the elevation to use when the Button is not enabled.