toggle menu
structures
1.4.0
common
switch theme
search in API
structures
/
ink.ui.structures.elements
/
TextElement
Text
Element
@
Serializable
@
SerialName
(
value
=
"text"
)
data
class
TextElement
(
val
text
:
String
,
val
style
:
TextStyle
=
TextStyle.Body
)
:
UiElement.Static
A single contiguous block of text.
Members
Members & Extensions
Constructors
Text
Element
Link copied to clipboard
constructor
(
text
:
String
,
style
:
TextStyle
=
TextStyle.Body
)
Properties
style
Link copied to clipboard
val
style
:
TextStyle
UI style to apply to the text.
text
Link copied to clipboard
val
text
:
String
Text to be displayed.
Functions
render
With
Type
Link copied to clipboard
inline
fun
<
T
:
UiElement
>
UiElement
.
renderWithType
(
block
:
T
.
(
)
->
Unit
)
:
RenderResult