Interface

ButtonElevation

Represents the elevation for a button in different states.

Source set: Common
public interface ButtonElevation

Represents the elevation for a button in different states.

See ButtonDefaults.elevation for the default elevation used in a Button.

Functions

elevation

Source set: Common
@Composable
    public fun elevation(enabled: Boolean, interactionSource: InteractionSource): State<Dp>

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

Parameters

enabled whether the button is enabled
interactionSource the InteractionSource for this button
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: