Glass Panel
Frosted-glass surface for floating chrome above a canvas — dock panels, hovering toolbars, and transient overlays — with a translucent background and soft border. Install Glass Panel from the VLLNT UI registry with the shadcn CLI.
Frosted-glass surface for floating chrome above a canvas — dock panels, hovering toolbars, and transient overlays — with a translucent background and soft border. Part of the utility family in VLLNT UI, it ships as a machine-readable registry entry — copy the source directly into your app with the shadcn CLI and own it, no runtime dependency on a component library.
Preview
Switch between light and dark to inspect the embedded Storybook preview.
Installation
Add Glass Panel to your project with the shadcn CLI. The source lands in your codebase, ready to adapt:
pnpm dlx shadcn@latest add https://ui.vllnt.ai/r/glass-panel.jsonSource
import { cn } from "../../lib/utils";
export type GlassPanelProps = React.ComponentPropsWithoutRef<"div">;
const GlassPanel = ({
children,
className,
ref,
...props
}: GlassPanelProps & { ref?: React.Ref<HTMLDivElement> }) => (
<div
className={cn(
"rounded-2xl border border-border/60 bg-background/70 shadow-[0_12px_40px_oklch(var(--foreground)/0.08)] backdrop-blur-xl",
className,
)}
ref={ref}
{...props}
>
{children}
</div>
);
GlassPanel.displayName = "GlassPanel";
export { GlassPanel };
Stories
Explore every variant and state in the interactive Storybook:
Preview
Switch between light and dark to inspect the embedded Storybook preview.