# Components Alert: Outlined Alerts

Alerts defined only by a clean border with no fill behind the text. Use on colored or busy backgrounds where a solid panel would feel heavy.

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

## Install

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

## Depends on

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

## About this block

Outlined Alerts shows five alert variants stacked in a single column.
Each alert carries a bold border with a fully transparent background,
an icon on the left, a short title, and a one-line description. The
five variants cover the standard status tones in order: default,
destructive, success, warning, and info. Every variant uses a
color-matched border and icon so the tone is clear even without
reading the text.

Because the background is absent, the border does all the work of
separating the alert from whatever sits behind it. The title, body
copy, and icon for each entry are independent, so you can rewrite
any of them without affecting the others. You can also remove
variants you do not need or reorder them to suit your page.

## When to use

Reach for this block when your page or panel already carries a
background color or pattern and a filled alert would look too heavy.
In a project management workspace it fits well inside a task detail
drawer, a settings panel, or a dashboard card where the surface
behind an alert is already shaded. The transparent body keeps the
layout feeling open rather than stacked with competing surfaces,
which is the main advantage over the filled basic or elevated styles.

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
  users the filled variants so they understand the tonal system
  before seeing the outlined treatment
- [Cards](https://www.shadcn-ui-blocks.com/blocks/components/cards) when the alerts live inside a
  card body and context needs to be set

**After**

- [Dismissible Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/dismissible-alerts)
  if the notices should be clearable once the user has acted
- [Compact Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/compact-alerts) for
  a tighter version in dense sidebars or table rows

## What you can display

Any status message that needs tone without a heavy background is a
good fit. A few ways to use the set:

- **Task status updates.** Surface blocked, completed, or at-risk
  states inline on a task row without adding visual bulk to the panel.
- **Form validation summaries.** Show success, warning, and error
  outcomes at the top of a form section where the page background
  is already colored.
- **Settings feedback.** Confirm a saved change or flag a permission
  issue inside a settings drawer where a filled panel would clash
  with the surrounding surface.

> Tip: on a white or very light background, increase the border
> opacity slightly so the outlined edge stays crisp without a fill.

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