Separator
pure-ui/separatorFreeComponent
A customizable separator component
Install it
npx shadcn@latest add https://raw.githubusercontent.com/MusKRI/pure-ui/main/public/r/separator.jsonSource
1import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";23import { cn } from "@/lib/classes";45function Separator({6 className,7 orientation = "horizontal",8 ...props9}: SeparatorPrimitive.Props) {10 return (11 <SeparatorPrimitive12 data-slot="separator"13 orientation={orientation}14 className={cn(15 "shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:not-[[class^='h-']]:not-[[class*='_h-']]:self-stretch",16 className17 )}18 {...props}19 />20 );21}2223export { Separator };
What it pulls in
npm packages
Other registry items
Files it writes
More from Pure UI
All 291 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion | Pure UI | Components | Free | 4 deps | |
| Avataravatar | Pure UI | Components | Free | 3 deps | |
| Badgebadge | Pure UI | Components | Free | 4 deps | |
| Buttonbutton | Pure UI | Components | Free | 4 deps | |
| Button Groupbutton-group | Pure UI | Components | Free | 4 deps | |
| Calendarcalendar | Pure UI | Components | Free | 4 deps | |
| Cardcard | Pure UI | Components | Free | 2 deps | |
| Checkboxcheckbox | Pure UI | Components | Free | 4 deps |
