# Components Alert: Elevated Alerts

Alerts raised with a soft shadow so they lift off the surface. Use for floating notifications or messages that should feel above the content.

- Page: https://www.shadcn-ui-blocks.com/blocks/components/alerts/elevated-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/elevated-alerts.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/components-alerts-elevated-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-elevated-alerts.json"`.

## Depends on

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

## About this block

Elevated Alerts is a vertical stack of five alert cards, each carrying a
soft drop shadow that lifts it off the page surface. The set covers every
common status tone in order: a neutral default, a destructive error in red,
a success in green, a warning in yellow, and an info notice in blue. Each
card pairs a status icon on the left with a bold title and a short
description beside it.

The five variants are independent of one another, so you can drop in any
subset that your flow requires. The title, description, and icon on each
card are straightforward to swap, and the shadow treatment is the one
constant that ties the set together visually.

## When to use

Use this block when your interface surfaces notifications that float above
the main content rather than sitting flush inside a panel or form. It is a
natural fit for an ecommerce storefront: order confirmations, payment
failures, low stock warnings, and shipping updates all benefit from the
slightly raised feel that signals the message is above the noise. Where
[Basic Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/basic-alerts) blend into the page,
the elevated treatment gives each notice a card like presence that draws
the eye without relying on color alone.

A natural flow around it on a Components page:

**Before**

- [Cards](https://www.shadcn-ui-blocks.com/blocks/components/cards) to establish the elevated, card surface
  aesthetic before the alert messages appear
- A short product status header to orient the reader to what section these
  messages belong to

**After**

- [Dismissible Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/dismissible-alerts) when
  you want users to be able to clear notices after reading them
- [Badges](https://www.shadcn-ui-blocks.com/blocks/components/badges) to show lightweight status indicators
  alongside or below the alert stack

## What you can display

Each card is a self contained notice that works across the full range of
transactional feedback an online store generates:

- **Order and payment status.** Use the success and destructive variants to
  confirm a completed purchase or flag a declined card immediately.
- **Inventory and shipping updates.** The warning and info variants suit low
  stock alerts or carrier delays that shoppers need to see before checkout.
- **Account and security notices.** Place a neutral or info card to inform
  customers of a password change or a new device login without alarming them.

> Tip: if you only need two or three tones, remove the unused cards rather
> than leaving them with placeholder copy; a shorter stack reads more
> deliberately than a full five.

## 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)
- [Frosted Glass Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/frosted-glass-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)
