4.2.0
Core

Separator

An unlabelled 1px rule in a semantic role — never a shadow, a gradient, or a substitute for spacing.

Both orientations

A separator is a 1px border in a semantic role — never a shadow or a gradient rule.

Deployments

Everything that shipped this week.

Overview
Logs
Settings

Usage

import { Separator } from '@oceanic-hub/brand-system'

The only plain divider in the system. Not a shadow, not a gradient, not a spacer div — if two regions need separating with nothing to say about it, this is the vocabulary. Once there is a word to hang between the two hairlines — a date, an unread rule — that is Marker's separator variant, which draws the same rule around a label.

Upstream spreads this across four non-RTL headings — a base horizontal rule, a vertical one, one inside a menu, one inside a list — because its page is demonstrating the SAME two orientations in different neighbourhoods. The demo below shows both orientations once each, already in the neighbourhoods that matter here (a horizontal rule under a block of text, a vertical one between inline labels in a toolbar row); a second pair of demos re-showing the same two facts inside a differently-named container would teach nothing the first pair does not.

decorative defaults to true, so a separator renders role="none" and carries no semantics — right for the common case of a rule that is purely visual rhythm. Pass decorative={false} only for the rare separator that stands for something a reader should be told about, such as a hard boundary between two distinct lists rather than a beat between sections of one.

RTL is not supported — recorded in pairings.json under direction: nothing in this package has ever been laid out or measured right-to-left, and upstream ships an RTL example. Unlike ScrollArea, this one is inherited rather than distinct to the component: a 1px rule has no direction-dependent geometry of its own, and while dir type-checks (it is a global HTML attribute on the underlying div) nothing in this component reads it.

API Reference

See the Separator API page for every prop of every part, with types, defaults and the contract that pins them.

On this page