Separator
indiacn/separatorFreeComponent
Horizontal or vertical divider built on Radix Separator.
Install it
npx shadcn@latest add https://indiacn.in/r/separator.jsonSource
1'use client';23import * as SeparatorPrimitive from '@radix-ui/react-separator';4import { ComponentProps } from 'react';56import { cn } from '@/lib/utils';78/** Visual divider line, horizontal or vertical. */9function Separator({10 className,11 orientation = 'horizontal',12 decorative = true,13 ...props14}: ComponentProps<typeof SeparatorPrimitive.Root>) {15 return (16 <SeparatorPrimitive.Root17 decorative={decorative}18 orientation={orientation}19 className={cn(20 'shrink-0 bg-neutral-200',21 orientation === 'horizontal' ? 'h-px w-full' : 'h-full w-px',22 className,23 )}24 {...props}25 />26 );27}2829export { Separator };
What it pulls in
npm packages
Other registry items
Files it writes
More from indiacn
All 26 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion | indiacn | Components | Free | 2 deps | |
| Alertalert | indiacn | Components | Free | 2 deps | |
| Badgebadge | indiacn | Components | Free | 1 dep | |
| Breadcrumbbreadcrumb | indiacn | Components | Free | 1 dep | |
| Buttonbutton | indiacn | Components | Free | 3 deps | |
| Button Groupbutton-group | indiacn | Components | Free | no deps | |
| Cardcard | indiacn | Components | Free | 1 dep | |
| Chipchip | indiacn | Components | Free | 2 deps |
