Horizontal
Full-width 1px rule — default.
Subtle line to separate content — horizontal by default, or vertical in a row.
Live
Above the rule
Below the rule
<hr class="divider" aria-hidden="true" />
<hr class="divider divider--vertical" aria-hidden="true" />
import { Divider } from 'caustica-design/core'
<Divider />
<Divider orientation="vertical" />
Full-width 1px rule — default.
.divider--vertical for inline separation.
When not decorative, expose role="separator" (React
decorative={false}).
aria-hidden="true" so AT skip them.
decorative={false} (or HTML
role="separator" + aria-orientation).
| Class | Description |
|---|---|
.divider |
Base horizontal rule. |
.divider--vertical |
Inline vertical separator. |
From src/core/Divider.tsx — renders <hr>.
| Prop | Type | Default | Description |
|---|---|---|---|
orientation |
'horizontal' | 'vertical' |
'horizontal' |
Layout direction / modifier class. |
decorative |
boolean |
true |
When true, hides from AT. When false, exposes
role="separator".
|
className |
string |
— | Merged onto the root. |