Glass Panel
ElementsA translucent surface with a subtle blur and optional gradient hairline.
ReadyResponsive
Usage
Package exportimport { GlassPanel } from "@jnpll/elements-ui/glass-panel";
<GlassPanel className="w-full max-w-sm p-6">
<h3 className="font-medium">{"A little clarity"}</h3>
<p className="mt-2 text-sm text-muted-foreground">A surface that lets the background through.</p>
</GlassPanel>Examples
Strong surface with a ring
A little clarity
A surface that lets the background through.
API Reference
| Prop | Type / description | Default |
|---|---|---|
strong | booleanIncreases the surface opacity and blur. | false |
ring | booleanAdds a gradient border overlay. | false |
children | ReactNodePanel content. | - |
className | stringControls padding, width, and additional styling. | - |
Composition & accessibility
Place GlassPanel over a visible background to see the blur. Keep foreground contrast readable in both light and dark themes.