textComponent

inline fun textComponent(block: TextComponent.Builder.() -> Unit = {}): TextComponent

The builder DSL for TextComponent.

Example usage:

textComponent {
this.color = 0xFF000000 // This corresponds to #000000, which is black.
this.textSizeSp = 12f
this.typeface = Typeface.MONOSPACE
}