ComponentElevation

Known direct subclasses
ButtonElevation

Represents the elevation for a button in different states.

CardElevation

Represents the elevation for a card in different states.

ChipElevation

Represents the elevation used in a selectable chip in different states.

FloatingActionButtonElevation

Represents the tonal and shadow elevation for a floating action button in different states.

SelectableChipElevation

Represents the elevation used in a selectable chip in different states.


This interface defines various elevation values for different interaction states, allowing for visual feedback based on user actions or component status.

In case the component is in multiple states at once, only the latest interaction value will apply.

Summary

Public properties

Dp

The elevation of the component when it is disabled.

Cmn
Dp

The elevation of the component when it is being dragged.

Cmn
Dp

The default elevation of the component.

Cmn
Dp

The elevation of the component when it is focused.

Cmn
Dp

The elevation of the component when the pointer is hovering over it.

Cmn
Dp

The elevation of the component when it is pressed.

Cmn

Public properties

disabledElevation

val disabledElevationDp

The elevation of the component when it is disabled.

draggedElevation

val draggedElevationDp

The elevation of the component when it is being dragged.

elevation

val elevationDp

The default elevation of the component.

focusedElevation

val focusedElevationDp

The elevation of the component when it is focused.

hoveredElevation

val hoveredElevationDp

The elevation of the component when the pointer is hovering over it.

pressedElevation

val pressedElevationDp

The elevation of the component when it is pressed.