separator
shadcn/separatorFreeComponent
shadcn publishes no description for this item.
Live preview
live · rendered by the registry
Rendered by shadcn on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add separatorSource
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 }
Files it writes
More from shadcn
All 63 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| accordionaccordion | shadcn | Components | Free | no deps | |
| alertalert | shadcn | Components | Free | no deps | |
| alert-dialogalert-dialog | shadcn | Components | Free | no deps | |
| aspect-ratioaspect-ratio | shadcn | Components | Free | no deps | |
| attachmentattachment | shadcn | Components | Free | no deps | |
| avataravatar | shadcn | Components | Free | no deps | |
| badgebadge | shadcn | Components | Free | no deps | |
| breadcrumbbreadcrumb | shadcn | Components | Free | no deps |
