Glass Panel

Elements

A translucent surface with a subtle blur and optional gradient hairline.

A little clarity

A surface that lets the background through.

ReadyResponsive

Usage

Package export
tsx
import { 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

PropType / descriptionDefault
strongboolean

Increases the surface opacity and blur.

false
ringboolean

Adds a gradient border overlay.

false
childrenReactNode

Panel content.

-
classNamestring

Controls 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.