Compose Component

TextButton

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

TextButton social preview

TextButtonWithAnimatedShapeSample

@Preview
@Sampled
@Composable
fun TextButtonWithAnimatedShapeSample() {
    TextButton(onClick = {}, shapes = ButtonDefaults.shapes()) { Text("Text Button") }
}

TextButtonSample

@Preview
@Sampled
@Composable
fun TextButtonSample() {
    TextButton(onClick = { /* Do something! */ }) { Text("Text 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: