Display
Separator
A quiet line between groups.
Horizontal and vertical
A 1px line in the border colour. A vertical separator stretches to the height of its flex parent, so give the row a height.
Atlas design system
Tokens, components and docs for every product.
DocsChangelogRoadmap
When to use
- Between groups of related content that need a little more distance than spacing gives.
- Between inline items in a toolbar or link row.
- Between alternatives, with a label: “or”.
Not for: every item in a list (use spacing, or a bordered list), or to frame a card (use the card’s border).
With a label
Put text inside to get a centred label with a line on either side.
or
API
Separator
| Prop | Type | Default | Description |
|---|---|---|---|
| orientation | 'horizontal' | 'vertical' | 'horizontal' | Direction of the line. |
| decorative | boolean | true | Purely visual (role="none"). Set false for a real thematic break (role="separator"). |
| children | ReactNode | — | Label text; draws the line on both sides. |
| ...props | HTMLAttributes<HTMLDivElement> | — | Forwarded, including ref and className. |
Accessibility
- Decorative by default: role="none", so assistive tech skips it. Most separators are only visual.
- Pass decorative={false} when the break is meaningful (between sections of content): it gets role="separator" and, if vertical, aria-orientation.
- A label’s text is real content and is read in order; pair a labelled separator with decorative (the default).
Motion
- None. A separator is static.