Text
text · Content · All components
Body text, or placeholder lines when lines is set and text is not.

board
screen custom width=360 height=370
text "Body text, default size"
text lg "Large"
text sm "Small and muted" muted
text "Bold" bold
text "Placeholder lines when lines is set and there's no text:" sm muted
text lines=3
text "Breadcrumbs are small muted text:" sm muted
text "Home / Settings / Profile" sm mutedWriting it
- A quoted string sets text:
text "…". - Bare words set size:
sm,md,lg. - Bare words set align:
left,center,right. mutedturns muted on;no-mutedturns it off.boldturns bold on;no-boldturns it off.- Anything else is written
key=value. - Has no children.
Props
| Prop | Values | Notes |
|---|---|---|
text (main text) |
string | |
lines |
number | Draw N placeholder lines instead of real text |
size |
sm, md, lg | |
muted |
boolean | |
bold |
boolean | |
align |
left, center, right |
tsquare 0.9.0 · View this page on GitHub
tsquare