Surfaces
Glass Panel
Composed surface for cards, panels, pills, popovers, and elevated app chrome.
Preview
Release demos ready. Update 0.
Installation
First add the exact @glassyui mapping to components.json as shown in Getting Started. Then run the pinned item command:
pnpm dlx [email protected] add @glassyui/glass-panelDirect registry declarations
These values belong to @glassyui/glass-panel itself in registry.json.
Package dependencies
clsx
Registry dependencies
@glassyui/glass-surface
File targets
components/glassyui/glass-panel.tsx
Complete installed closure
This follows every namespaced registry dependency recursively and de-duplicates the packages and target files installed with this item.
Package dependencies
clsx
Installed files
components/glassyui/glass-panel.tsxcomponents/glassyui/glass-surface.tsxcomponents/glassyui/lib/merge-refs.tscomponents/glassyui/lib/use-local-light.tscomponents/glassyui/lib/refraction-map.tscomponents/glassyui/lib/use-refraction-filter.tsxcomponents/glassyui/glass-provider.tsxcomponents/glassyui/liquid-filters.tsxcomponents/glassyui/lib/preferences.tscomponents/glassyui/styles/liquid.css
Usage
import { GlassPanel } from "@/components/glassyui/glass-panel";
export function PanelDemo() {
return (
<GlassPanel variant="card" elevation="raised">
Panel content
</GlassPanel>
);
}Examples
<GlassPanel variant="pill" preset="control">
Syncing
</GlassPanel>API
GlassPanelForward-ref composed surface rendered as a div.
GlassPanelPropsNative div props plus panel composition options.
variantShape and spacing: panel, card, or pill.
elevationShadow and border level: base or raised.
presetMaterial preset forwarded to GlassSurface.
interactiveEnables local pointer lighting when interaction preferences allow it.
refractionMaterial refraction level forwarded to GlassSurface.
refractionBackgroundDecorative supplied background forwarded to GlassSurface.
refractionDisplacementOptional displacement override forwarded to GlassSurface.
Notes
Accessibility
Keep the Radix-backed semantics intact and preserve visible labels, focus states, and keyboard operation when copying the source.
Performance
Use provider quality preferences for dense app screens. Reserve strong refraction for hero or showcase surfaces.