Typography
Typography renders semantic text variants. It can render a direct value or wrap child nodes.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Semantic text variants for headings, paragraphs, code, and muted copy
Typography renders semantic text variants. It can render a direct value or wrap child nodes.
ui.typography('sure_lib Lua UI', {
variant = 'h1'
})
ui.typography('A runtime page rendered from Lua.', {
variant = 'lead'
})
ui.typography(value?, props?, children?)
lui.typography(value?, props?, children?)
| Variant | Rendered tag | Use |
|---|---|---|
h1, h2, h3, h4 | Heading tags | Section headings. |
p | p | Paragraph text. |
lead | p | Lead paragraph. |
muted | p | Muted helper text. |
large | div | Large emphasized text. |
small | small | Small label text. |
blockquote | blockquote | Quoted or emphasized block. |
code | code | Inline code-like text. |
| Prop | Type | Description |
|---|---|---|
value | string | reactive getter | Text content. |
variant or as | string | Selects the variant. Defaults to p. |
className, style | mixed | Common LUI styling props. |
value.Was this page helpful?
