Separator
Divides content into groups, for the eye and for assistive technology.
When to use
- Split content into groups inside a card, a menu or a panel.
- Separate inline items in a row, with
orientation="vertical".
When not to use
- Space alone already separates the groups: use
gap, not a line. - Rows of data: use Table, which draws its own row borders.
Install
npx shadcn@latest add @clinia/separatorPatient details
ID: PAT-001
Status: Active
CardiologyUpdated Sep 18, 2026
Clinia rules
- The line is the
borderhairline, too faint to carry meaning on its own: the grouping must read without it. - Put it between groups, not between every item. Spacing does most of the work.
Do and don't
Lab results
Imaging
Billing
Lab results
Imaging
Billing
Accessibility
Built in
- Renders
role="separator"witharia-orientation, so a screen reader announces the break between groups.
Your responsibility
- Use Separator only where a screen reader should hear the break. For a line that is only visual, use a
borderclass on the container.
How to test
- With a screen reader, read through the content: each separator is announced between groups.
- Toggle the site theme: the line stays faint in both, and the grouping still reads without it.
API
Every prop comes from Base UI Separator.
Related