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.

Text

Text is the simplest LUI primitive. It renders a paragraph node from ui.text(value, props?) or lui.text(value, props?).
lui.page('copy', function(ui)
  ui.text('Inventory synced')
  ui.text('Waiting for server response', {
    tone = 'muted'
  })
end)

API

ui.text(value, props?)

Props

PropTypeDescription
valuestring | number | reactive getterText content. Passed as the first argument in Lua helpers.
tone'default' | 'muted'muted renders smaller muted text. Defaults to default.
classNamestringAppends runtime utility classes to the default text class.
styletableInline style table forwarded to the renderer.
font, color, theme, varsmixedCommon LUI style props handled by the renderer.
Use ui.typography for headings, lead copy, code-style text, or semantic variants. Use ui.text for short paragraph text.