Separator
A visual divider between sections. Horizontal by default, vertical inside row layouts — decorative unless announced.
Installation#
pnpm dlx shadcn@latest add @davinciui/separatorUsage#
API Reference#
| Prop | Type | Default |
|---|---|---|
orientationLayout direction. Vertical stretches to the row height. | "horizontal" | "vertical" | "horizontal" |
decorativePurely visual divider. False exposes role="separator" with aria-orientation. | boolean | true |
classNameAdditional CSS classes. | string | — |
Accessibility#
By default it renders role presentation with aria-hidden, so screen readers ignore it. Setting decorative false exposes role separator plus aria-orientation for the chosen orientation; it is never focusable and has no keyboard behavior.
Motion#
A static divider primitive with no meaningful motion. It has no animation or transition logic, and no prefers-reduced-motion handling is needed.
View source
Keep in mind
Need a custom component?
I build bespoke UI components & websites tailored to your brand.

