Separator
8starlabs-ui/separatorFreeComponent
A Base UI separator component
Install it
npx shadcn@latest add https://ui.8starlabs.com/r/separator.jsonSource
1"use client";23import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";45import { cn } from "@/lib/utils";67function Separator({8 className,9 orientation = "horizontal",10 ...props11}: SeparatorPrimitive.Props) {12 return (13 <SeparatorPrimitive14 data-slot="separator"15 orientation={orientation}16 className={cn(17 "bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",18 className19 )}20 {...props}21 />22 );23}2425export { Separator };
What it pulls in
npm packages
Files it writes
More from 8starlabs-ui
All 74 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Buttonbutton | 8starlabs-ui | Components | Free | 2 deps | |
| Collapsiblecollapsible | 8starlabs-ui | Components | Free | 1 dep | |
| Dropdown Menudropdown-menu | 8starlabs-ui | Components | Free | 2 deps | |
| Flip clockflip-clock | 8starlabs-ui | Components | Free | no deps | |
| Heatmapheatmap | 8starlabs-ui | Components | Free | no deps | |
| Inputinput | 8starlabs-ui | Components | Free | no deps | |
| JSON Viewerjson-viewer | 8starlabs-ui | Components | Free | 1 dep · 3 files | |
| Labellabel | 8starlabs-ui | Components | Free | no deps |
