Sakani

Divider

A rule between groups of content, optionally with a label centred on it.

With a label

The usual case is separating two alternatives, like a login form above and social sign-in below.

Vertical

A vertical divider fills its parent's height, so that parent needs one — a flex row with a set height, or items that give it height themselves.

DraftEdited 2h ago3 collaborators

RichSeparator

A sibling component for when the thing between the lines is more than a word — a badge, a logo, an icon. Use label for plain overline text, or children for anything else (which takes precedence).

Divider props

PropTypeDefaultDescription
orientation'horizontal' | 'vertical''horizontal'Vertical needs a parent with a definite height, since it stretches to fill it.
labelstringOptional text centred on the line. Horizontal only.

RichSeparator props

PropTypeDefaultDescription
labelstringShorthand for plain uppercase overline text. Ignored if children is set.
childrenReactNodeArbitrary content between the two lines — a badge, logo, or icon.