Liquid glass card preview

Liquid glass card

A glass panel that frosts and slightly refracts whatever sits behind it.

  • Group
    Cards
  • Origin
    Inspired · Original (this library)
  • License
    MIT
  • Added
    Oct 18
npx shadcn@latest add @deank/liquid-glass-card

The registry stays private. Install from the repo with a GitHub token — see the README.

Usage

import { LiquidGlassCard } from "@/registry/components/liquid-glass-card/liquid-glass-card";

<LiquidGlassCard>Label</LiquidGlassCard>

Props

PropTypeDefaultDescription
children?ReactNode
refraction?number40Strength of the refraction, 0 to 100.
blur?number10Frost blur radius, px.
radius?string"var(--radius-surface)"Corner radius, any CSS length.

Also accepts every prop of HTMLAttributes<HTMLDivElement>.

When to use

Glass panels over imagery or colourful backgrounds.

When not to use

Plain backgrounds (the effect disappears) or text-heavy panels needing contrast.

Related

Holographic card · Spotlight card · Aurora background