PRIMITIVES
Separator
Horizontal or vertical divider with three Memphis-aware variants. Composes the Radix Separator primitive, so its semantics flip between decorative and meaningful via decorative.
Import
Solid (default)
Variants
Vertical
LeftRight
Props
Separator props
| Prop | Type | Default | Description |
|---|---|---|---|
| orientation | 'horizontal' | 'vertical' | 'horizontal' | Direction of the divider. |
| variant | 'solid' | 'dashed' | 'memphis-double' | 'solid' | solid is a single hairline; dashed switches to a dashed border; memphis-double is a double-bordered slab matching the Memphis aesthetic. |
| decorative | boolean | true | When true (default), the separator is purely decorative and hidden from screen readers. Pass false when the divider conveys meaningful structure that should be announced. |
| className | string | — | Tailwind classes are merged on top of the variant defaults. |
Accessibility
- Defaults to
decorative=true— no role is announced. Use this for purely visual separation. - Set
decorative=falsewhen the divider represents meaningful structure (e.g. between thematic page sections); Radix exposesrole="separator"with the rightaria-orientation.