Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
19 lines
385 B
TypeScript
19 lines
385 B
TypeScript
import { createElement, type ComponentPropsWithoutRef } from "react"
|
|
|
|
import { cn } from "@/lib/utils"
|
|
|
|
type GlassPanelProps = ComponentPropsWithoutRef<"div"> & {
|
|
as?: "div" | "section" | "aside"
|
|
}
|
|
|
|
export function GlassPanel({
|
|
as = "div",
|
|
className,
|
|
...props
|
|
}: GlassPanelProps) {
|
|
return createElement(as, {
|
|
className: cn("glass-panel", className),
|
|
...props,
|
|
})
|
|
}
|