# Components Alert: Double Border Alerts

Alerts with a layered double border for a refined, framed look. Use to highlight important notices that deserve extra visual weight on a page.

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

## Install

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

## Depends on

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

## About this block

Double Border Alerts is a set of five status alerts, each wrapped in a
layered double border that draws a clear frame around the message. The
five variants are Default, Destructive, Success, Warning, and Info. Each
alert shows a bold title above a short description, and all variants
except Default pair their title with a status icon aligned to the left of
the text column.

The double border is the only structural difference from a plain outlined
alert, so the copy, icon choice, and which variants you keep are fully
yours to change. You can display two variants or all five, swap the
titles and descriptions for your own wording, and remove any variant
that does not fit your alert palette.

## When to use

Reach for this block when an alert needs a little more visual presence
than a single border provides but without resorting to color fills. In a
product analytics SaaS this works well on a report or data summary page
where the framed look signals that a notice is deliberate and structured,
not a transient toast. The layered border gives each alert a contained,
formal quality that sits naturally alongside data tables and metric cards.

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
  plain baseline before introducing the framed variant
- [Outlined Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/outlined-alerts) as a
  lighter single border option that leads into this heavier treatment

**After**

- [Elevated Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/elevated-alerts) if you
  want to take the visual weight one step further with a shadow lift
- [Badges](https://www.shadcn-ui-blocks.com/blocks/components/badges) to pair status labels with the
  alerts for a richer data notification pattern

## What you can customize

Each variant is independent, so you can include only the tones your
product uses and write copy that fits your context precisely.

- **Tone selection.** Keep only the variants that match your alert
  vocabulary, such as Success and Warning for a report health panel,
  and drop the rest.
- **Icon and title pairing.** Swap the icon to any Lucide icon that
  better represents the event, and update the title to name the exact
  condition your users need to act on.
- **Description depth.** Expand the description to two sentences when
  users need enough context to fix a problem without leaving the page.

> Tip: in a dense analytics dashboard, lead with a number or metric
> in the title so users know the severity at a glance before reading
> the description.

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