separator
draco-china-github/separatorFreeComponent
shadcn/ui publishes no description for this item.
Install it
npx shadcn@latest add https://raw.githubusercontent.com/draco-china/shadcn-pro/main/apps/docs/public/r/styles/radix-sera/separator.jsonSource
1"use client"23import * as React from "react"4import { Separator as SeparatorPrimitive } from "radix-ui"56import { cn } from "@/registry/radix-sera/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 "shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch",21 className22 )}23 {...props}24 />25 )26}2728export { Separator }
Files it writes
More from shadcn/ui
All 201 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| accordionaccordion | shadcn/ui | Components | Free | no deps | |
| alertalert | shadcn/ui | Components | Free | no deps | |
| alert-dialogalert-dialog | shadcn/ui | Components | Free | no deps | |
| aspect-ratioaspect-ratio | shadcn/ui | Components | Free | no deps | |
| avataravatar | shadcn/ui | Components | Free | no deps | |
| badgebadge | shadcn/ui | Components | Free | no deps | |
| breadcrumbbreadcrumb | shadcn/ui | Components | Free | no deps | |
| buttonbutton | shadcn/ui | Components | Free | no deps |
