androidx.compose.material3
ElevatedButton
Composable function
One of the button types. It works like Button. Only the parameters that differ are described here.
A light button with a shadow. Use it when a button must stand out from a patterned background.

ElevatedButton(onClick = {}) { Text("Reply") }
Basic
Takes one shape.
@Composable
fun ElevatedButton(
onClick: () -> Unit,
modifier: Modifier = Modifier,
enabled: Boolean = true,
shape: Shape = ButtonDefaults.elevatedShape,
colors: ButtonColors = ButtonDefaults.elevatedButtonColors(),
elevation: ButtonElevation? = ButtonDefaults.elevatedButtonElevation(),
border: BorderStroke? = null,
contentPadding: PaddingValues = ButtonDefaults.ContentPadding,
interactionSource: MutableInteractionSource? = null,
content: @Composable RowScope.() -> Unit,
)
Defaults that differ from Button:
shape=ButtonDefaults.elevatedShapecolors=ButtonDefaults.elevatedButtonColors()elevation=ButtonDefaults.elevatedButtonElevation()
Same as in Button: onClick, modifier, enabled, shape, colors, elevation, border, contentPadding, interactionSource, content.
ExpressiveSince 1.10
Takes shapes: one shape at rest and one while pressed. The button morphs between them.
@Composable
fun ElevatedButton(
onClick: () -> Unit,
shapes: ButtonShapes,
modifier: Modifier = Modifier,
enabled: Boolean = true,
colors: ButtonColors = ButtonDefaults.elevatedButtonColors(),
elevation: ButtonElevation? = ButtonDefaults.elevatedButtonElevation(),
border: BorderStroke? = null,
contentPadding: PaddingValues = ButtonDefaults.contentPaddingFor(ButtonDefaults.MinHeight),
interactionSource: MutableInteractionSource? = null,
content: @Composable RowScope.() -> Unit,
)
Defaults that differ from Button:
colors=ButtonDefaults.elevatedButtonColors()elevation=ButtonDefaults.elevatedButtonElevation()contentPadding=ButtonDefaults.contentPaddingFor(ButtonDefaults.MinHeight)
Same as in Button: onClick, shapes, modifier, enabled, colors, elevation, border, contentPadding, interactionSource, content.
Button types
ButtonFilledTonalButtonElevatedButtonOutlinedButtonTextButton
See also
ButtonDefaults: default values and helper functions forElevatedButton.