# Components Alert: Basic Alerts

Plain alerts with an icon, title, and message in a soft container. Use for everyday notices like saved changes, confirmations, and short tips.

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

## Install

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

## Depends on

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

## About this block

Basic Alerts is a stacked set of five alert variants. Each row holds a
soft container with a subtle shadow, a small status icon on the left, a
bold title, and a one or two sentence description beneath it. The five
variants cover the full tonal range: a neutral default with no icon, then
destructive, success, warning, and info, each coloured to match its
intent.

Every alert is independent. You can use any single variant on its own,
reorder them, or drop the ones your project does not need. The title and
description copy is plain text, so updating the message for your context
takes seconds.

## When to use

Reach for this block when you need a clean, legible notice that fits
anywhere on the page without drama. It suits confirmation screens, form
submission results, account settings pages, and inline feedback inside
a creative agency or studio workflow where the message must read clearly
against a minimal layout. Compared to accent or bordered variants, the
basic style stays out of the way and lets the copy carry the weight.

A natural flow around it on a Components page:

**Before**

- [Badges](https://www.shadcn-ui-blocks.com/blocks/components/badges) to label the current state before
  the alert explains it in full
- A short section heading or descriptive paragraph that sets the context
  for the notice below

**After**

- [Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons) to give users a clear action
  once they have read the alert
- [Compact Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/compact-alerts) if you need
  a denser follow-up notice in a tighter area of the same view

## What you can display

These alerts work for any short feedback message that needs a tone cue.
A few concrete uses:

- **Form feedback.** Show a success alert after a project brief is
  submitted, or a destructive alert when a required field is missing.
- **System notices.** Use the info or warning variant to surface account
  limits, billing reminders, or maintenance windows to studio clients.
- **Action results.** Confirm that a file was saved, a collaborator was
  invited, or a draft was discarded with the matching tonal variant.

> Tip: pair the alert title with a short action verb ("File saved",
> "Access denied") so users grasp the outcome before reading the detail.

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