Skip to content

Separator

phroun edited this page Aug 22, 2026 · 1 revision

Wire name separator

A rule drawn between things, optionally with a title in it.

new panel layout=vbox children={
	new label caption="Above"
	new separator
	new label caption="Below"
}

Properties

Property Type Default Meaning
caption string Optional separator title
orientation horizontal | vertical Line orientation

Plus the common properties.

Events

separator emits no events.

Orientation does not follow the parent

A separator is horizontal unless you say otherwise. It does not infer its direction from the box it sits in — dropped into an hbox it is still a horizontal rule, laid across the row rather than dividing it.

new panel layout=hbox children={
	new label caption="Left"
	new separator orientation=vertical
	new label caption="Right"
}

caption puts a title in the rule, which reads as a section heading in a vbox.

Behavior

A separator takes no focus and no input.

A separator inside a menu is a different thing — a menuitem with the separator flag, not this trinket. See MenuBar.

See also

Spacer — a gap with no rule · Panel · MenuBar

Clone this wiki locally