Edu Calvo

Glass Card

Cards 92

About

A frosted glass panel with a refractive rim that visibly bends its backdrop, a pointer-tracked specular highlight, and a real drop shadow, for wrapping content over photos or gradients.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Glass Card to your project and fits it to your theme.

Code

How Glass Card is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import GlassCard from "@/components/ui/glass-card";

export default function GlassCardDemo() {
  return (
    <div className="flex h-screen w-full items-center justify-center bg-[linear-gradient(135deg,#7c3aed,#ec4899,#f59e0b)] p-8">
      <GlassCard className="max-w-sm">
        <h3
          className="text-lg font-semibold text-white"
          style={{ textShadow: "0 1px 8px rgba(0,0,0,0.35)" }}
        >
          Liquid Glass
        </h3>
        <p
          className="mt-2 text-sm text-white/90"
          style={{ textShadow: "0 1px 8px rgba(0,0,0,0.35)" }}
        >
          A refractive glass pane that bends the gradient behind it, with a
          pointer-tracked specular highlight.
        </p>
      </GlassCard>
    </div>
  );
}

Dependencies

More by Edu Calvo

View all
  • Scrollable Card Stack

    Scrollable Card Stack

    278
  • Pixel Flow Field

    Pixel Flow Field

    202
  • AI Task List

    AI Task List

    192
  • Siri Orb

    Siri Orb

    187
  • Cursor Follow

    Cursor Follow

    165
  • Gravity Stars

    Gravity Stars

    160
  • Agent Avatar

    Agent Avatar

    150
  • Coverflow Carousel

    Coverflow Carousel

    142

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.3K
  • Statistics Card 7

    Statistics Card 7

    332
  • Photo Deck

    Photo Deck

    14
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    651
  • Card

    Card

    73
  • Card Studio

    Card Studio

    12
  • Card

    Card

  • Statistics Card 10

    Statistics Card 10

    299

Explore more

Part of SmoothUI — browse the full library on 21st.dev.