Separator
Visual divider with optional label. Built on Radix UI Separator primitives for proper accessibility semantics.
Horizontal Separator
Preview
Content above
Content below
With Label
Preview
Option A
OR
Option B
Vertical Separator
Preview
LeftRight
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| orientation | "horizontal" | "vertical" | "horizontal" | Direction of the separator line. |
| decorative | boolean | true | When true, the separator is purely visual and hidden from assistive technology. |
| label | string | - | Optional text label displayed in the center of the separator. |
| className | string | - | Additional CSS classes. |
Accessibility
- Built on Radix UI Separator with proper
role="separator"whendecorativeisfalse - Decorative separators (default) are hidden from assistive technology via
role="none" - Supports
aria-orientationfor vertical separators - Label text is accessible to screen readers when provided