# Components Alert: Dashed Border Alerts

Alerts outlined with a dashed border for a lighter, sketch like feel. Use for draft notices, placeholders, or optional tips in a quiet tone.

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

## Install

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

## Depends on

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

## About this block

Dashed Border Alerts is a vertical stack of five alert variants, each
outlined with a dashed border and a light shadow. Reading top to bottom,
the set covers a neutral default, a destructive error state, a green
success state, a yellow warning state, and a blue info state. Each alert
pairs a status icon on the left with a bold title and a short description
beside it, so tone is communicated by both color and iconography at once.

All five alerts are independent. You can keep only the variants your
product needs, swap the title and description copy freely, and adjust the
icon to match your own icon library. The dashed border weight is the same
across every variant, so the set reads as a cohesive family no matter how
many you include.

## When to use

Reach for this block when you need status feedback that feels provisional
or advisory rather than final. On a logistics and delivery platform the
dashed outline works well for route change notices, pickup window
reminders, or carrier delay warnings where the message is real but not
alarming. It reads quieter than a solid border set, making it a good fit
for pages where alerts are contextual hints sitting alongside a map or
tracking timeline rather than blocking the user with a hard stop.

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
  default solid style before introducing the dashed variant
- [Badges](https://www.shadcn-ui-blocks.com/blocks/components/badges) to label statuses above a section
  that leads into the alert area

**After**

- [Dismissible Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/dismissible-alerts) if
  the notices should clear once the user acknowledges them
- [Cards](https://www.shadcn-ui-blocks.com/blocks/components/cards) to wrap the alert stack inside a
  panel for a more structured layout

## What you can display

Any of the five states can carry real operational copy. A few concrete
fits for a delivery context:

- **Route or schedule changes.** Use the warning or info variants to
  surface updated ETAs, rerouted shipments, or pickup window shifts
  without alarming the recipient.
- **Confirmation of an action.** The success variant fits post-submit
  moments like a booking confirmed or a label generated.
- **Validation or system errors.** The destructive variant covers failed
  address lookups, payment declines, or API connectivity issues that
  need clear but non-modal feedback.

> Tip: remove variants your product does not use rather than leaving them
> with placeholder copy; a focused set of two or three states stays
> easier to scan.

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