# Text

> Text 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: [Text](https://composables.com/material-components/text.md)
- API reference and more examples: [Text](https://composables.com/jetpack-compose/androidx.compose.material/material/components/Text/api.md)

## Code

```kotlin
@Composable
fun TextWithLinks() {
    val url = "https://developer.android.com/jetpack/compose"
    val annotatedString = buildAnnotatedString {
        append("Build better apps faster with ")
        // If the annotation's TextLinkStyles is null,
        // then the link style defaults to Material styling.
        withLink(LinkAnnotation.Url(url = url)) { append("Jetpack Compose") }
    }
    Text(annotatedString)
}
```
