Simulates prefers-reduced-motion for the demo. Off follows your system setting.
Steps focus through the demo with ] and [. Tab, arrows, and Escape stay native so the component behaves as shipped.
1
Pixel UI
Small parts, carefully made.
A hairline that draws itself in, with an optional label in the middle.
npx shadcn@latest add ikislay/pixel-ui/separatorimport { Separator } from "@/components/ui/separator"export function Demo() {return (<div className="flex h-5 items-center gap-3">Docs <Separator orientation="vertical" /> Blog</div>)}
1// Loading…
Options you can pass to customize this component.
orientationhorizontalverticalAcross the full width, or down the full height of its row.
decorativebooleanTurn it off when the line marks a real break, so it is announced as a separator.
labelReactNodeText shown in a gap in the middle of the line.
classNamestringMerged onto the root element.