text
inline fun text(text: String = "", inheritStyle: Boolean = true, crossinline builder: LiteralTextBuilder.() -> Unit = { })(source)
Append text to the parent.
Parameters
text
the raw text (without formatting)
inheritStyle
if true, this text will inherit the style from its parent
builder
the builder which can be used to set the style and add child text components
inline fun text(text: Component, inheritStyle: Boolean = true, crossinline builder: LiteralTextBuilder.() -> Unit = { })(source)
Appends a MutableComponent to the parent.
Parameters
text
the text instance
inheritStyle
if true, this text will inherit the style from its parent
builder
the builder which can be used to set the style and add child text components