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.

Stack

Stack renders a vertical flex container for ordered content.
ui.stack({
  gap = 'lg',
  className = 'w-[480px]'
}, function()
  ui.typography('Content', {
    variant = 'h3'
  })
  ui.text('Stacked body')
end)

API

ui.stack(props?, children?)

Props

PropTypeDescription
gap'sm' | 'md' | 'lg'Vertical spacing. Defaults to md.
classNamestringAppends classes to the default stack class.
style, font, theme, varsmixedCommon LUI styling props.