Separator
Horizontal or vertical separation for meaningful boundaries between related content groups.
Purpose
Use Separator to communicate a real visual or structural boundary between related groups, toolbar actions or menu sections.
Basic usage
Installation
With the Siteplane registry alias configured, add the component and import the installed source from your app.
CLI
pnpm dlx shadcn@4.16.1 add @siteplane/separatorImport
import { Separator } from "@/components/ui/separator";
import { Button } from "@/components/ui/button";Need the machine-readable source metadata? View registry JSON.
Usage
Separator divides related groups. Prefer spacing first; use Separator when a real boundary improves scanning.
import { Separator } from "@/components/ui/separator";
export function Example() {
return <Separator />;
}Examples
Labeled dividers and toolbar rules are layout compositions of the same primitive. Vertical separators stretch to the height of their flex row.
With label
A three-column grid centers the label between two dividers.
Toolbar
Vertical separators take their height from the buttons in the row.
API Reference
The reference lists the source-owned exports and props that are easy to miss in visual examples. Inherited Base UI props remain available unless the wrapper narrows them.
Separatoraccepts the Base UI Separator props and defaultsorientationtohorizontal.- Set
orientation="vertical"for side-by-side content; its parent must provide a usable block size. - Use the primitive's decorative or semantic contract instead of duplicating the divider with a raw border element.
Motion
Component motion uses the shared Siteplane motion contract. See the global motion guide for provider setup, tokens and reduced-motion behavior.
Separator is static and has no motion behavior.
Accessibility
- Use a decorative separator when the boundary is only visual; use semantic separator behavior when it represents a meaningful division.
- Match
orientationto the rendered direction so assistive technology receives the correct structure.
Implementation Guidance
- Separator does not replace spacing. Keep layout gaps and padding for grouping.
- Avoid stacking separators and borders when spacing or surface contrast already creates a clear boundary.