Installation
Usage
Component API
Separator
Visual or semantic separator. Built on Radix UI Separator.orientation- Separator direction ("horizontal"|"vertical")decorative- Whether separator is purely visual (true) or semantic (false)
Implementation
Examples
Horizontal Separator
Default horizontal separator:Vertical Separator
Separate inline elements:Menu Items
Separate menu sections:List Items
Separate list entries:Card Sections
Separate card content:Custom Styling
Customize appearance:Semantic Separator
For accessibility, usedecorative={false} when the separator conveys meaning:
Accessibility
- Uses
role="separator"whendecorative={false} - Uses
role="none"whendecorative={true} - Proper orientation attributes for screen readers
- No interactive elements (not focusable)