# Components Alert: Icon Only Alerts

Compact alerts that pair a status icon with a short message and no title. Use for quick inline feedback where space is tight and tone is clear.

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

## Install

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

## Depends on

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

## About this block

Icon Only Alerts is a stacked set of five status alerts, each rendered
as a horizontal row. A circular icon badge sits on the left, its
background tinted to match the alert tone: neutral gray for default,
red for destructive, green for success, yellow for warning, and blue
for informational. To the right of the badge, a short bold title sits
above a single line of description text in a smaller, muted size.

Every alert is independent. You can reorder, remove, or duplicate any
of the five rows without affecting the others. The title and
description text in each row are plain strings, so swapping in your
own copy is straightforward. If you only need three tones, drop the
remaining rows entirely.

## When to use

Reach for this block on status dashboards or confirmation screens
where a reader needs to understand the result of several concurrent
actions at once. In a healthcare scheduling product, for example, a
page that finalises an appointment batch might surface a success
notice for confirmed slots, a warning for double bookings, and an
info notice about reminder emails all in the same view. The circular
icon badge makes each tone legible even when the alerts are stacked
close together, which is an advantage over plain text notices or
alerts that rely on border color alone.

A natural flow around it on a Components page:

**Before**

- [Basic Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/basic-alerts) to establish
  a simpler baseline before introducing the icon badge treatment
- A short introductory heading or a [Badges](https://www.shadcn-ui-blocks.com/blocks/components/badges)
  row to set the page context

**After**

- [Compact Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/compact-alerts) when the
  next section needs a tighter, single-line variant
- [Dismissible Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/dismissible-alerts)
  if users need to clear individual notices after reading

## What you can display

Each row is a self-contained status notice, so the content you slot
in can cover a wide range of feedback types:

- **Appointment and booking outcomes.** Show confirmed, cancelled, and
  pending states together so a scheduler sees the full picture without
  scrolling.
- **Form submission results.** Pair a success row for saved fields
  with a warning row for optional fields that were skipped.
- **System health snapshots.** Use the five tones to represent
  different service states at a glance on an internal status screen.

> Tip: keep each description to one short sentence so the compact row
> height stays consistent and the icon badge remains the focal point.

## 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)
- [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)
- [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)
