{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "separator-glass", "type": "registry:ui", "title": "Separator Glass", "description": "A glass-themed separator/divider component for visual content separation.\n * Based on @radix-ui/react-separator with glassmorphism styling.\n *\n * Issue #27: Feature request for standalone SeparatorGlass\n *\n * @example\n * ```tsx\n * // Horizontal separator (default)\n * \n *\n * // Vertical separator\n * \n *\n * // With glow effect\n * \n *\n * // Decorative (hidden from screen readers)\n * \n * ```", "dependencies": [ "@radix-ui/react-separator", "react" ], "registryDependencies": [ "cn" ], "files": [ { "path": "components/glass/ui/separator-glass.tsx", "type": "registry:component", "content": "/**\n * SeparatorGlass Component\n *\n * A glass-themed separator/divider component for visual content separation.\n * Based on @radix-ui/react-separator with glassmorphism styling.\n *\n * Issue #27: Feature request for standalone SeparatorGlass\n *\n * @example\n * ```tsx\n * // Horizontal separator (default)\n * \n *\n * // Vertical separator\n * \n *\n * // With glow effect\n * \n *\n * // Decorative (hidden from screen readers)\n * \n * ```\n */\n\nimport * as React from 'react';\nimport * as SeparatorPrimitive from '@radix-ui/react-separator';\nimport { cn } from '@/lib/utils';\nimport '@/glass-theme.css';\n\n// ========================================\n// TYPES\n// ========================================\n\nexport interface SeparatorGlassProps extends React.ComponentPropsWithoutRef<\n typeof SeparatorPrimitive.Root\n> {\n /**\n * The orientation of the separator.\n * @default 'horizontal'\n */\n orientation?: 'horizontal' | 'vertical';\n\n /**\n * When true, signifies that it is purely visual and not a semantic separator.\n * @default true\n */\n decorative?: boolean;\n\n /**\n * Enable glow effect for the separator.\n * @default false\n */\n glow?: boolean;\n}\n\n// ========================================\n// STYLES\n// ========================================\n\n/** Generate inline styles for separator */\nfunction getSeparatorStyles(glow: boolean): React.CSSProperties {\n return {\n background: 'var(--separator-bg)',\n ...(glow && { boxShadow: 'var(--separator-glow)' }),\n };\n}\n\n// ========================================\n// COMPONENT\n// ========================================\n\n/**\n * SeparatorGlass - A glass-themed visual separator\n *\n * Renders a horizontal or vertical line to separate content sections.\n * Supports glassmorphism styling with optional glow effect.\n *\n * @example\n * ```tsx\n *
\n *

Section 1

\n * \n *

Section 2

\n *
\n * ```\n */\nconst SeparatorGlass = React.forwardRef<\n React.ComponentRef,\n SeparatorGlassProps\n>(({ className, orientation = 'horizontal', decorative = true, glow = false, ...props }, ref) => (\n \n));\n\nSeparatorGlass.displayName = 'SeparatorGlass';\n\n// ========================================\n// EXPORTS\n// ========================================\n\nexport { SeparatorGlass };\n\n// shadcn/ui compatible alias\nexport { SeparatorGlass as Separator };\n" } ], "categories": [ "ui" ], "cssVars": { "light": { "--glass-bg": "rgba(255, 255, 255, 0.1)", "--glass-border": "rgba(255, 255, 255, 0.2)", "--blur-sm": "8px", "--blur-md": "16px", "--blur-lg": "24px" }, "dark": { "--glass-bg": "rgba(255, 255, 255, 0.05)", "--glass-border": "rgba(255, 255, 255, 0.1)", "--blur-sm": "8px", "--blur-md": "16px", "--blur-lg": "24px" } } }