Builtin Library
README.md
sep
Horizontal separator — a Luau builder over canvas with fillWidth
"N%"coords. Emits a singlekind = "line"command spanning[0, mid]->["100%", mid].fillWidth = truemakes the canvas claim the parent's full available width. 4 px of vertical breathing room is baked in (thickness + 4) so the line has a clear top/bottom gap.
Exports
sep(opts: SepOpts?) -> any— build a horizontal-line separator widget. The module returns this function directly.
Types:
SepOpts = { id: string?, classes: (string | { string })?, style: { [string]: any }? }
Usage
local sep = require("@builtin::modules.zui.widget.sep")
sep()
sep({ style = { color = "#0E639C", height = 2 } })
Notes
- Style overrides:
style.height(default 1.0) sets line thickness in pixels,style.color(default#3C3C3C) sets line color. - Pure builder — no side effects, no state.