Builtin Library
README.md
topPanel
Top-docked panel. Root-only. Pairs with centralPanel (and
optionally bottomPanel/leftPanel/rightPanel) for a docked app
shell — register each as its own screen with appropriate layer
ordering.
Exports
topPanel(children, opts?) -> Node— returns the top-panel widget node. Module returns the builder function directly.
Types:
TopPanelOpts = { id?, classes?, props?, style? }
Usage
local topPanel = require("@builtin::modules.zui.widget.topPanel")
topPanel({ menubar, breadcrumb })
Notes
- Must be the top-level widget of the screen it's registered to — nested topPanels render incorrectly.
- Pair with
centralPanel/bottomPanel/leftPanel/rightPanelfor full docked-shell layouts; each lives on its own screen so their layer ordering controls the dock.