separator
accelya-ui-lib/separatorFreeComponent
shadcn/ui publishes no description for this item.
Live preview
live · rendered by the registry
Rendered by shadcn/ui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://raw.githubusercontent.com/ramsaoji/Accelya-UI-Lib/main/public/r/styles/default/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 |
