GitHub

Separator

Visually or semantically separates content.

Loading example…

Installation

pnpm dlx shadcn@latest add @sui/separator

Install with the shadcn CLI or use the shared @workspace/ui package. Follow the installation guide to configure the registry, load styles, and choose import aliases.

Usage

import { Separator } from "@workspace/ui/components/separator"
<Separator />

Vertical

Use orientation="vertical" for a vertical separator.

Loading example…

With text

Pass children to place text between two lines, for example to divide sign-in options. The lines sit on either side of the text without a background patch behind it, so the separator also works on glass and images. Inside glass, separator lines use a translucent foreground color that follows the material.

Loading example…

Vertical separators between menu items with descriptions.

Loading example…

List

Horizontal separators between list items.

Loading example…

RTL

To enable RTL support in shadcn/ui, see the RTL configuration guide.

Loading example…

API Reference

See the Base UI Separator documentation.