cardElevation

fun cardElevation(defaultElevation: Dp = ElevationTokens.Level0, pressedElevation: Dp = ElevationTokens.Level0, focusedElevation: Dp = ElevationTokens.Level0, hoveredElevation: Dp = ElevationTokens.Level1, draggedElevation: Dp = ElevationTokens.Level3, disabledElevation: Dp = ElevationTokens.Level0): CardElevation

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

Parameters

defaultElevation

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

pressedElevation

the elevation used when the Card is pressed.

focusedElevation

the elevation used when the Card is focused.

hoveredElevation

the elevation used when the Card is hovered.

draggedElevation

the elevation used when the Card is dragged.