TextElement

@Serializable
@SerialName(value = "text")
data class TextElement(val text: String, val style: TextStyle = TextStyle.Body) : UiElement.Static

A single contiguous block of text.

Constructors

Link copied to clipboard
constructor(text: String, style: TextStyle = TextStyle.Body)

Properties

Link copied to clipboard

UI style to apply to the text.

Link copied to clipboard

Text to be displayed.

Functions

Link copied to clipboard
inline fun <T : UiElement> UiElement.renderWithType(block: T.() -> Unit): RenderResult