Clinia UI

Separator

Divides content into groups, for the eye and for assistive technology.

shadcn docs →

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/separator

Patient details

ID: PAT-001

Status: Active

CardiologyUpdated Sep 18, 2026

Clinia rules

  • The line is the border hairline, 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

Do separate groups of related content.

Lab results

Imaging

Billing

Don't draw a line between every item.

Accessibility

Built in

  • Renders role="separator" with aria-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 border class on the container.

How to test

  1. With a screen reader, read through the content: each separator is announced between groups.
  2. 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.