separator
gmhlab/separatorFreeComponent
gmhlab publishes no description for this item.
Install it
npx shadcn@latest add https://raw.githubusercontent.com/gmhlab/monorepo/main/packages/ui/public/r/separator.jsonSource
1import * as React from "react"2import { Separator as SeparatorPrimitive } from "radix-ui"34import { cn } from "@/lib/utils"56function Separator({7 className,8 orientation = "horizontal",9 decorative = true,10 ...props11}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {12 return (13 <SeparatorPrimitive.Root14 data-slot="separator"15 decorative={decorative}16 orientation={orientation}17 className={cn(18 "bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",19 className20 )}21 {...props}22 />23 )24}2526export { Separator }
What it pulls in
npm packages
Files it writes
More from gmhlab
All 64 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| accordionaccordion | gmhlab | Components | Free | 2 deps | |
| alertalert | gmhlab | Components | Free | 1 dep | |
| alert-dialogalert-dialog | gmhlab | Components | Free | 1 dep | |
| aspect-ratioaspect-ratio | gmhlab | Components | Free | 1 dep | |
| avataravatar | gmhlab | Components | Free | 1 dep | |
| badgebadge | gmhlab | Components | Free | 2 deps | |
| breadcrumbbreadcrumb | gmhlab | Components | Free | 2 deps | |
| buttonbutton | gmhlab | Components | Free | 2 deps |
