Skip to content

Separator

SSeparator is a visual divider between blocks of content or groups of elements. It is built on Reka UI: by default it carries the separator role (aria-orientation), and in decorative mode it is hidden from screen readers.

Horizontal

Block above

Block below

Vertical

Stretches to the height of the container — handy between inline elements.

ProfileSettingsSign out

With a label

Centered text (the label prop or the default slot) — for example, to separate sign-in options.

API

Props

NameTypeDefaultDescription
orientation"vertical" | "horizontal""horizontal"Line orientation: horizontal spans the full width, vertical the full height of the container.
decorativebooleanfalseWhen true, the separator is purely decorative and hidden from screen readers (role="none").
labelstringundefinedLabel text in the center of a horizontal separator (alternative to the default slot).

Slots

NameDescription
defaultLabel content in the center of a horizontal separator.