deepraj21

Glass Alert

Component

About

A frosted-glass callout box for banners and inline notices, with info, success, warning and destructive tints over any background image or gradient.

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

Code

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

Usage.tsx

import {
  GlassAlert,
  GlassAlertTitle,
  GlassAlertDescription,
} from "@/components/ui/glass-alert";

export default function GlassAlertDemo() {
  return (
    <div className="relative flex min-h-[420px] w-full items-center justify-center overflow-hidden rounded-2xl bg-gradient-to-br from-fuchsia-500 via-pink-500 to-orange-400 p-8">
      <GlassAlert variant="success" className="max-w-sm">
        <GlassAlertTitle>Payment received</GlassAlertTitle>
        <GlassAlertDescription>
          Your plan renews on 12 November.
        </GlassAlertDescription>
      </GlassAlert>
    </div>
  );
}

Dependencies

More by deepraj21

View all
  • Glass Sidebar

    Glass Sidebar

    41
  • Glass Message

    Glass Message

    34
  • Glass Tab Bar

    Glass Tab Bar

    21
  • Glass Date Picker

    Glass Date Picker

    21
  • Glass Notification

    Glass Notification

    11
  • Glass Input

    Glass Input

    10
  • Glass Tabs

    Glass Tabs

    10
  • Glass Knob

    Glass Knob

    10