# Text
You can use **Text** to display text. You can use the **style** argument to define things like textdecoration or fontfamily.
```kotlin
@Composable
fun TextExample(){
Column {
Text("Just Text")
Text("Text with cursive font", style = TextStyle(fontFamily = FontFamily.Cursive))
Text(
text = "Text with LineThrough",
style = TextStyle(textDecoration = TextDecoration.LineThrough)
)
Text(
text = "Text with underline",
style = TextStyle(textDecoration = TextDecoration.Underline)
)
Text(
text = "Text with underline, linethrough and bold",
style = TextStyle(
textDecoration = TextDecoration.combine(
listOf(
TextDecoration.Underline,
TextDecoration.LineThrough
)
), fontWeight = FontWeight.Bold
)
)
}
}
```
# Working with Text
## Normal text
```kotlin
@Composable
fun NormalTextExample(){
Text("Just Text")
}
```
## Cursive text
```kotlin
@Composable
fun CursiveTextExample(){
Text("Text with cursive font", style = TextStyle(fontFamily = Cursive))
}
```
## Text with LineThrough
```kotlin
@Composable
fun TextWithLineThroughExample(){
Text(
text = "Text with LineThrough",
style = TextStyle(textDecoration = TextDecoration.LineThrough)
)
}
```
## Text with underline
```kotlin
@Composable
fun TextWithUnderline(){
Text(
text = "Text with underline",
style = TextStyle(textDecoration = TextDecoration.Underline)
)
}
```
## Text with underline, bold and linethrough
```kotlin
@Composable
fun TextWithUnderlineStrikeThroughAndBold(){
Text(
text = "Text with underline, linethrough and bold",
style = TextStyle(
textDecoration = TextDecoration.combine(
listOf(
TextDecoration.Underline,
TextDecoration.LineThrough
)
), fontWeight = FontWeight.Bold
)
)
}
```
## See also:
* [Full Example Code]({{ site.samplefolder }}/foundation/TextExample.kt)
* [Write it down: Using text in Jetpack Compose](https://www.droidcon.com/2022/08/01/write-it-down-using-text-in-jetpack-compose/))