elevatedCardElevation

fun elevatedCardElevation(defaultElevation: Dp = ElevationTokens.Level1, pressedElevation: Dp = ElevationTokens.Level1, focusedElevation: Dp = ElevationTokens.Level1, hoveredElevation: Dp = ElevationTokens.Level2, draggedElevation: Dp = ElevationTokens.Level4, disabledElevation: Dp = ElevationTokens.Level1): CardElevation

Creates a CardElevation that will animate between the provided values according to the Material specification for an ElevatedCard.

Parameters

defaultElevation

the elevation used when the ElevatedCard is has no other Interactions.

pressedElevation

the elevation used when the ElevatedCard is pressed.

focusedElevation

the elevation used when the ElevatedCard is focused.

hoveredElevation

the elevation used when the ElevatedCard is hovered.

draggedElevation

the elevation used when the ElevatedCard is dragged.