Compose Component

ElevatedButton

Material Design elevated button Buttons help people initiate actions, from sending an email, to sharing a document, to liking a post.

ElevatedButton social preview

ElevatedButtonSample

@Preview
@Sampled
@Composable
fun ElevatedButtonSample() {
    ElevatedButton(onClick = { /* Do something! */ }) { Text("Elevated Button") }
}

ElevatedButtonWithAnimatedShapeSample

@Preview
@Sampled
@Composable
fun ElevatedButtonWithAnimatedShapeSample() {
    ElevatedButton(onClick = {}, shapes = ButtonDefaults.shapes()) { Text("Elevated 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: