Skip to content

    Browse components

    Glass Card

    Frosted glassmorphism card with a refractive edge light, film grain and a pointer-follow sheen.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/glass-card

    First time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/glass-card.json

    Usage

    import { GlassCard } from "@/components/ui/glass-card";
    
    <div className="relative bg-gradient-to-br from-rose-500 to-violet-600 p-16">
      <GlassCard className="w-80">
        <div className="p-6">Frosted content</div>
      </GlassCard>
    </div>

    Props

    PropTypeDefaultDescription
    childrenReactNode—Card content.
    blurnumber18Backdrop blur in px.
    tintnumber0.1White tint of the glass.
    noisenumber0.25Film grain strength.
    radiusnumber28Corner radius in px.
    highlightbooleantruePointer-follow sheen and edge light.
    classNamestring—Extra classes for the root element.