Separator
A hairline rule, horizontal or vertical, with an optional caption.
Loading documentation…
Separator draws the hairline the rest of the system separates things with —
the same heyo-hairline token a card header, a table row and the sidebar use.
It is one pixel, translucent, and correct on every surface.
A vertical separator needs a parent with a height — it stretches to fill one. The usual case is a toolbar.
label splits the rule and centres a caption between the halves. It only
applies to a horizontal separator — a captioned vertical rule has nowhere to
put the text without rotating it.
Most surfaces in heyo-ui already draw their own seams — Card between its
parts, Table between rows, Select.Group between sections. Reach for
Separator when you are composing a layout yourself.
The axis the rule runs along. It defaults to horizontal. A vertical rule
fills the height of its parent, so give the parent one.
A centred caption with the rule split around it. Horizontal only.
Merged into the rule — a different colour, a margin, a dashed edge.