Builtin Library
README.md
vbox
Vertical layout container. Children stacked top-to-bottom; spacing via
style.gap; horizontal alignment via style.align ("start" |
"center" | "end").
Exports
vbox(children, opts?) -> Node— returns the vertical-layout widget node. Module returns the builder function directly.
Types:
VboxOpts = { id?, classes?, props?, style? }
Usage
local vbox = require("@builtin::modules.zui.widget.vbox")
vbox({ header, body, footer }, { style = { gap = 8, align = "center" } })
Notes
- Pairs with
hboxfor horizontal layouts andwrap/gridwidgets for more complex flows. style.gapis the spacing between children, not padding around the container — usestyle.paddingfor the latter.