Separator
tdds/separatorFreeComponent
Visual divider component
Install it
npx shadcn@latest add https://raw.githubusercontent.com/gjohnsx/ttb-label-verification/main/tdds-registry/public/r/separator.jsonSource
1"use client"23import * as React from "react"4import { Separator as SeparatorPrimitive } from "radix-ui"56import { cn } from "@/lib/utils"78function Separator({9 className,10 orientation = "horizontal",11 decorative = true,12 ...props13}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {14 return (15 <SeparatorPrimitive.Root16 data-slot="separator"17 decorative={decorative}18 orientation={orientation}19 className={cn(20 "bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:self-stretch",21 className22 )}23 {...props}24 />25 )26}2728export { Separator }
What it pulls in
npm packages
Other registry items
Files it writes
More from tdds
All 43 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion | tdds | Components | Free | 2 deps | |
| Alertalert | tdds | Components | Free | 1 dep | |
| Alert Dialogalert-dialog | tdds | Components | Free | 1 dep | |
| Avataravatar | tdds | Components | Free | 1 dep | |
| Badgebadge | tdds | Components | Free | 1 dep | |
| Breadcrumbbreadcrumb | tdds | Components | Free | 2 deps | |
| Buttonbutton | tdds | Components | Free | 2 deps | |
| Button Groupbutton-group | tdds | Components | Free | 1 dep |
