ButtonElevation
Kotlin
|Java
@Stable interface ButtonElevation
androidx.compose.material.ButtonElevation |
Represents the elevation for a button in different states.
See ButtonDefaults.elevation 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 |