Google is committed to advancing racial equity for Black communities. See how.

ButtonElevation

@Stable interface ButtonElevation
androidx.compose.material.ButtonElevation

Represents the elevation for a button in different states.

See ButtonConstants.defaultElevation for the default elevation used in a Button.

Summary

Public methods
abstract Dp
elevation(enabled: Boolean, interactionState: InteractionState)

Represents the elevation used in a button, depending on enabled and interactionState.

Public methods

elevation

abstract fun elevation(
    enabled: Boolean,
    interactionState: InteractionState
): Dp

Represents the elevation used in a button, depending on enabled and interactionState.

Parameters
enabled: Boolean whether the button is enabled
interactionState: InteractionState the InteractionState for this button