Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.sure-developer.com/llms.txt

Use this file to discover all available pages before exploring further.

Typography

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'
})

API

ui.typography(value?, props?, children?)

Variants

VariantRendered tagUse
h1, h2, h3, h4Heading tagsSection headings.
ppParagraph text.
leadpLead paragraph.
mutedpMuted helper text.
largedivLarge emphasized text.
smallsmallSmall label text.
blockquoteblockquoteQuoted or emphasized block.
codecodeInline code-like text.

Props

PropTypeDescription
valuestring | reactive getterText content.
variant or asstringSelects the variant. Defaults to p.
className, stylemixedCommon LUI styling props.
If children are present, Typography renders children instead of value.