Skip to main content

Divider

A rule between sections, optionally labelled ("or"); horizontal or vertical.

Signature
Density
Viewport
Theme and light/dark are set in the top bar
Live demo
Open ↗

When to use​

A rule between sections, optionally labelled ("or"); horizontal or vertical.

Accessibility​

Fully keyboard operable: Tab to focus, Enter/Space to activate. The visible focus ring uses --focus-ring — never remove it. Provide an accessible label (aria-label) for icon-only controls.

Install and import​

npx shadcn@latest add @prism/divider
import { Divider } from '@/components/prism/Divider';

In a no-build prototype, read it from the bundle instead: const { Divider } = window.PrismDesignSystem_39d121;

Props​

PropTypeRequiredDescription
labelReact.ReactNode—Centred text between two rules, e.g. "or" between sign-in options. Read as normal text.
orientation"horizontal" | "vertical"—"horizontal" (default) or "vertical" — a rule between inline items, stretched to the row's height.
variant"default" | "accent"—"accent": a brand hairline in the secondary brand colour (--sig-2), else the accent.
classNamestring—