Stack
Stack renders a vertical flex container for ordered content.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Vertical flex container with named gap sizes
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)
ui.stack(props?, children?)
lui.stack(props?, children?)
| Prop | Type | Description |
|---|---|---|
gap | 'sm' | 'md' | 'lg' | Vertical spacing. Defaults to md. |
className | string | Appends classes to the default stack class. |
style, font, theme, vars | mixed | Common LUI styling props. |
Was this page helpful?
