# Components Alert: Frosted Glass Alerts

Alerts with a blurred, translucent backdrop that reveals content behind. Use over images or hero sections where a glassy notice fits the design.

- Page: https://www.shadcn-ui-blocks.com/blocks/components/alerts/frosted-glass-alerts
- Collection: [Components](https://www.shadcn-ui-blocks.com/blocks/components), Free tier
- Group: [Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts)
- Created: 2026-06-14
- Preview image: https://www.shadcn-ui-blocks.com/blocks/components/alerts/frosted-glass-alerts.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/components-alerts-frosted-glass-alerts
```

A free block: it installs with no account or key. Or install it by URL: `npx shadcn@latest add "https://www.shadcn-ui-blocks.com/r/components-alerts-frosted-glass-alerts.json"`.

## Depends on

- npm packages: class-variance-authority, lucide-react
- shadcn/ui components: alert
- Installs to: `@/components/blocks/components/alerts/frosted-glass-alerts`

## About this block

Frosted Glass Alerts renders five stacked alert variants inside a padded
column. Each alert carries a translucent, blurred background that lets
content behind it show through, a semi-transparent border, a subtle
shadow, and a status icon paired with a bold title and a short description
line. The five variants cover the full tone range: neutral default, error,
success, warning, and info, each tinted by its semantic color.

The title and description text are independent in every alert, so you can
replace either without affecting the others. You can also remove individual
variants your product does not need or add more by duplicating any entry.
The icon, tint color, and border color are the only coupled parts: swapping
the icon and the color together keeps the visual logic intact.

## When to use

Reach for this block when alerts must sit over a rich background rather
than a flat page. It fits well in a developer tools product where a
dashboard hero, a code editor panel, or a terminal surface already sits
behind the notices, and a solid panel would block too much of that context.
Compared to elevated alerts that float with a shadow, the frosted treatment
keeps the alert visually attached to the surface beneath it rather than
lifting away from it.

A natural flow around it on a Components page:

**Before**

- [Basic Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/basic-alerts) to show the
  default solid treatment so readers understand the contrast
- [Elevated Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/elevated-alerts) as a
  comparison of depth techniques before the translucent approach

**After**

- [Outlined Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/outlined-alerts) for a
  lighter option when the background interference needs to drop even
  further
- [Badges](https://www.shadcn-ui-blocks.com/blocks/components/badges) for pairing compact status signals
  with the full alert pattern in the same view

## What you can display

All five semantic tones are present, so you can drop in real copy for any
combination. A few concrete fits for a developer tools context:

- **Build and deploy status.** Map success to a passing pipeline, warning
  to a slow build, and error to a failed deployment so engineers read
  status at a glance without leaving the editor panel.
- **API key and quota notices.** Use the info and warning tones to surface
  rate limit warnings or expiring credentials over a dashboard that already
  shows live usage charts.
- **Permission and access errors.** The destructive variant works for
  gating notices when a user hits a feature they cannot access, shown over
  a blurred preview of what they would see with the right plan.

> Tip: this block works best when the page behind the alerts has visible
> texture or imagery; on a plain white background the blur effect is not
> visible and a basic alert will look identical.

## More in Components Alerts

- [Accent Border Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/accent-border-alerts)
- [All Sides Accent Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/all-sides-accent-alerts)
- [Basic Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/basic-alerts)
- [Bottom Accent Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/bottom-accent-alerts)
- [Compact Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/compact-alerts)
- [Dashed Border Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/dashed-border-alerts)
- [Dismissible Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/dismissible-alerts)
- [Dotted Border Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/dotted-border-alerts)
- [Double Border Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/double-border-alerts)
- [Elevated Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/elevated-alerts)
- [Glow Border Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/glow-border-alerts)
- [Icon Only Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/icon-only-alerts)
- [Inset Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/inset-alerts)
- [Monospace Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/monospace-alerts)
- [Outlined Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/outlined-alerts)
- [Paper Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/paper-alerts)
- [Pulse Border Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/pulse-border-alerts)
- [Right Accent Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/right-accent-alerts)
- [Top Accent Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/top-accent-alerts)
