separator
showcase-elevenlabs/separatorFreeComponent
shadcn/ui publishes no description for this item.
Install it
npx shadcn@latest add https://raw.githubusercontent.com/elevenlabs/showcase/main/apps/www/public/r/styles/new-york/separator.jsonSource
1"use client"23import * as React from "react"4import * as SeparatorPrimitive from "@radix-ui/react-separator"56import { cn } from "@/lib/utils"78const Separator = React.forwardRef<9 React.ElementRef<typeof SeparatorPrimitive.Root>,10 React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>11>(12 (13 { className, orientation = "horizontal", decorative = true, ...props },14 ref15 ) => (16 <SeparatorPrimitive.Root17 ref={ref}18 decorative={decorative}19 orientation={orientation}20 className={cn(21 "shrink-0 bg-border",22 orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",23 className24 )}25 {...props}26 />27 )28)29Separator.displayName = SeparatorPrimitive.Root.displayName3031export { Separator }
What it pulls in
npm packages
Files it writes
More from shadcn/ui
All 357 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| accordionaccordion | shadcn/ui | Components | Free | 1 dep | |
| alertalert | shadcn/ui | Components | Free | no deps | |
| alert-dialogalert-dialog | shadcn/ui | Components | Free | 1 dep | |
| aspect-ratioaspect-ratio | shadcn/ui | Components | Free | 1 dep | |
| avataravatar | shadcn/ui | Components | Free | 1 dep | |
| badgebadge | shadcn/ui | Components | Free | 1 dep | |
| breadcrumbbreadcrumb | shadcn/ui | Components | Free | 1 dep | |
| buttonbutton | shadcn/ui | Components | Free | 1 dep |
