CamoText
Text in one of the theme's styles, in the surrounding container's content color unless color is set.
API
- Kotlin
- Dart
public fun CamoText(
text: String,
modifier: Modifier = Modifier,
style: TextStyle = Camouflage.typography.bodyMedium,
color: Color = Color.Unspecified,
maxLines: Int = Int.MAX_VALUE,
overflow: TextOverflow = TextOverflow.Clip,
textAlign: TextAlign = TextAlign.Start,
)
| Name | Type | Default |
|---|---|---|
text | String | required |
modifier | Modifier | Modifier |
style | TextStyle | Camouflage.typography.bodyMedium |
color | Color | Color.Unspecified |
maxLines | Int | Int.MAX_VALUE |
overflow | TextOverflow | TextOverflow.Clip |
textAlign | TextAlign | TextAlign.Start |
Design notes
Why CamoText works this way, its states and its edge cases: contributor docs.