Separator
blacksite/separatorFreeComponent
Hairline divider with optional dashed/dotted variant.
Install it
npx shadcn@latest add https://blacksite.sh/r/separator.jsonSource
1"use client";23import * as React from "react";4import * as SeparatorPrimitive from "@radix-ui/react-separator";56import { cn } from "@/lib/utils";78interface SeparatorProps extends React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root> {9 variant?: "solid" | "dashed" | "dotted";10}1112const Separator = React.memo(13 React.forwardRef<React.ElementRef<typeof SeparatorPrimitive.Root>, SeparatorProps>(14 (15 { className, orientation = "horizontal", decorative = true, variant = "solid", ...props },16 ref,17 ) => (18 <SeparatorPrimitive.Root19 ref={ref}20 decorative={decorative}21 orientation={orientation}22 className={cn(23 "shrink-0 bg-transparent",24 orientation === "horizontal" ? "h-px w-full border-t" : "h-full w-px border-l",25 variant === "solid" && "border-border border-solid",26 variant === "dashed" && "border-border border-dashed",27 variant === "dotted" && "border-border border-dotted",28 className,29 )}30 {...props}31 />32 ),33 ),34);35Separator.displayName = "Separator";3637export { Separator };
More from blacksite
All 25 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| App headerapp-header | blacksite | Components | Free | no deps | |
| Badgebadge | blacksite | Components | Free | no deps | |
| Bar chartbar-chart | blacksite | Components | Free | no deps | |
| Buttonbutton | blacksite | Components | Free | no deps | |
| Cardcard | blacksite | Components | Free | no deps | |
| Chart tooltipchart-tooltip | blacksite | Components | Free | no deps | |
| Data listdata-list | blacksite | Components | Free | no deps | |
| Gantt timelinegantt-timeline | blacksite | Components | Free | no deps |
