<div class='sourceset sourceset-common'>Common</div>

```kotlin
sealed interface Annotation
```

Defines annotations that specify additional information to apply to ranges of text within the
given AnnotatedString.

The AnnotatedString supports annotations that provide different kind of information, such as
* [SpanStyle](/jetpack-compose/androidx.compose.ui/ui-text/classes/SpanStyle) specifies character level styling such as color, font, letter spacing etc.
* [ParagraphStyle](/jetpack-compose/androidx.compose.ui/ui-text/classes/ParagraphStyle) for configuring styling on a paragraph level such as line heights, text aligning, text direction etc.
* [LinkAnnotation](/jetpack-compose/androidx.compose.ui/ui-text/classes/LinkAnnotation) to mark links in the text.
* [TtsAnnotation](/jetpack-compose/androidx.compose.ui/ui-text/classes/TtsAnnotation) provides information to assistive technologies such as screen readers.
* Custom annotations using the [StringAnnotation](/jetpack-compose/androidx.compose.ui/ui-text/classes/StringAnnotation).