Separator
Visually or semantically separates content.
Installation
pnpm dlx shadcn@latest add @sui/separatorInstall 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.
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.
Menu
Vertical separators between menu items with descriptions.
List
Horizontal separators between list items.
RTL
To enable RTL support in shadcn/ui, see the RTL configuration guide.
API Reference
See the Base UI Separator documentation.