Glass Separator
einui/glass-separatorFreeComponent
A liquid glass styled separator/divider component.
Live preview
live · rendered by the registry
Rendered by einui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://ui.eindev.ir/r/glass-separator.jsonSource
1"use client"23import * as React from "react"4import { Separator as SeparatorPrimitive } from "radix-ui"5import { cn } from "@/lib/utils"67const GlassSeparator = React.forwardRef<8 React.ElementRef<typeof SeparatorPrimitive.Root>,9 React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>10>(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => (11 <SeparatorPrimitive.Root12 ref={ref}13 decorative={decorative}14 orientation={orientation}15 className={cn(16 "shrink-0 bg-gradient-to-r from-transparent via-white/20 to-transparent",17 orientation === "horizontal" ? "h-px w-full" : "h-full w-px",18 className,19 )}20 {...props}21 />22))23GlassSeparator.displayName = SeparatorPrimitive.Root.displayName2425export { GlassSeparator }
What it pulls in
npm packages
Files it writes
More from einui
All 42 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Base Widgetbase-widget | einui | Components | Free | 1 dep | |
| Calendar Widgetscalendar-widget | einui | Components | Free | 1 dep | |
| Clock Widgetsclock-widget | einui | Components | Free | 1 dep | |
| Glass Alert Dialogglass-alert-dialog | einui | Components | Free | 1 dep | |
| Glass Avatarglass-avatar | einui | Components | Free | 1 dep | |
| Glass Badgeglass-badge | einui | Components | Free | 1 dep | |
| Glass Breadcrumbglass-breadcrumb | einui | Components | Free | 1 dep | |
| Glass Buttonglass-button | einui | Components | Free | 2 deps |
