Separator
weekendsuperhero-io-sistine/separatorFreeComponent
Visually or semantically separates content with optional glass material.
Install it
npx shadcn@latest add https://raw.githubusercontent.com/Weekendsuperhero-io/sistine/main/public/r/separator.jsonSource
1"use client";23import { Separator as SeparatorPrimitive } from "radix-ui";4import * as React from "react";56import { cn } from "@/lib/utils";78const Separator = React.forwardRef<9 React.ElementRef<typeof SeparatorPrimitive.Root>,10 React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root> & {11 variant?: "default" | "glass";12 /** Soft themed shadow (folded from the glass wrapper). */13 glow?: boolean;14 }15>(({ className, orientation = "horizontal", decorative = true, variant = "glass", glow, ...props }, ref) => {16 // A colored line, not a glass panel — the variant map stays (token use, no resolveMaterial).17 const variants = {18 default: "bg-border",19 glass: "bg-[var(--glass-border)]",20 };2122 return (23 <SeparatorPrimitive.Root24 ref={ref}25 data-slot="separator"26 decorative={decorative}27 orientation={orientation}28 className={cn(29 "shrink-0",30 orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",31 variants[variant],32 glow && "shadow-sm shadow-(color:--glass-glow)",33 className,34 )}35 {...props}36 />37 );38});39Separator.displayName = SeparatorPrimitive.Root.displayName;4041export { Separator };
What it pulls in
npm packages
Other registry items
Files it writes
More from weekendsuperhero-io/sistine
All 71 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion | weekendsuperhero-io/sistine | Components | Free | 5 deps · 4 files | |
| Alertalert | weekendsuperhero-io/sistine | Components | Free | 3 deps · 4 files | |
| Alert Dialogalert-dialog | weekendsuperhero-io/sistine | Components | Free | 4 deps · 4 files | |
| Auto Foregroundauto-foreground | weekendsuperhero-io/sistine | Components | Free | no deps | |
| Avataravatar | weekendsuperhero-io/sistine | Components | Free | 4 deps · 4 files | |
| Badgebadge | weekendsuperhero-io/sistine | Components | Free | 4 deps · 4 files | |
| Breadcrumbbreadcrumb | weekendsuperhero-io/sistine | Components | Free | 5 deps · 4 files | |
| Buttonbutton | weekendsuperhero-io/sistine | Components | Free | 4 deps · 4 files |
