# textAllCaps in Compose

Hello fellow Android nerd.

Are you looking for an alternative of `textAllCaps` of XML in Jetpack Compose, you are at the right place.

```kotlin
            TextField(
              value = "",
              onValueChange = {},
              keyboardOptions = KeyboardOptions(
                keyboardType = KeyboardType.Text,
                capitalization = KeyboardCapitalization.Characters
              ),
            )
```

The doc of the `Capitalization` says this

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1738688394458/6741f986-d5e5-4eda-a68a-d202bc1ec550.png align="center")

Happy coding. Subscribe for more Jetpack Compose tricks.
