# TextButton

> TextButton from Material Compose (`androidx.compose.material:material`) for Jetpack Compose, with a code sample.

- Library: [Material Compose](https://composables.com/material-components/material-compose.md)
- Category: [Buttons](https://composables.com/material-components/buttons.md)
- Category: [Text](https://composables.com/material-components/text.md)
- API reference and more examples: [TextButton](https://composables.com/jetpack-compose/androidx.compose.material/material/components/TextButton/api.md)

## Code

```kotlin
@Composable
fun TextButtonSample() {
    TextButton(onClick = { /* Do something! */ }) { Text("Text Button") }
}
```
