Skip to content

Separator

A horizontal or vertical rule.

Horizontal

Release 4.2Shipped on Tuesday with 14 changes.
Release 4.1Shipped two weeks earlier with 9 changes.

Vertical

14 tasks3 invoices2 releases

Installation

npx shadcn@latest add @khaeli/separator

Install @khaeli/foundation first: this item's styling lives in its tokens and [data-slot] rules.

Installs with

Registry items
npm packages
  • @base-ui/react ^1.7.0

Accessible name

  • A separator has role="separator" and needs no name. A vertical one also has aria-orientation="vertical".
  • A vertical separator stretches to its row, so the row needs a height.

Registry JSON

The item as the shadcn CLI reads it, with every file it ships: https://ui.khaeli.com/r/separator.json