Widgets
Text
Static and reactive text.
Text accepts three argument shapes:
string: renders as static text.Signal[string]: renders reactively (produced byStateValue.FormatorDerived).- Any other value: converted via
fmt.Sprint(content)and rendered as static text. This is convenient for printing numbers or structs but loses reactivity.
Styling
Text accepts every modifier in the core set:
See Modifiers for the full list. Font styles available
out of the box: Body, Title, Title2, Title3, Caption, Mono.
Reactive content
The text patches in place when the underlying state changes; the view does not need to rerender for the label to update.