Separator
Divide related sections with a horizontal or vertical line.
Workspace
Shared projects and members
Everyone in this workspace can view and comment on its projects. Owners also manage members and billing.
Installation
pnpm dlx shadcn@4.18.0 add @siteplane/separatorComplete the one-time setup first. Registry JSON lists source files and dependencies.
Usage
import { Separator } from "@/siteplane/components/separator";
<Separator />;Vertical
Set orientation="vertical" and give the surrounding row a height; the line stretches to fill it.
Decorative
When the layout already separates the content, such as the rows of a list, use role="presentation" so assistive technologies don't announce each line. A dl takes only its term and description groups, so a details list with separators is built as a list of rows, as here.
- PlanPro
- Billing periodMonthly
- Next invoiceOct 1, 2026
API reference
| Prop | Type | Default | Description |
|---|---|---|---|
orientation | horizontal | vertical | horizontal | Line direction and accessible orientation. |
role | ARIA role | separator | Use presentation or none to remove separator semantics; aria-orientation is then omitted. |
class | string | unset | Additional layout or line classes. |
SeparatorPrimitive is the Base UI component. Other props, render, and refs follow Base UI Separator. An explicit aria-orientation is preserved for semantic separators.
Usage notes
A separator has no action and is not focusable by default. Use section headings to name content groups.