Skip to content
Feedback & OverlaysFree

Alert

An inline banner in 5 colors and 2 sizes, with an optional close button and action.

Usage

Installation

bash
npm install @wunderui/react

Then import what you need:

tsx
import {
  Alert,
  AlertDescription,
  AlertDialog,
  AlertDialogAction,
  AlertDialogCancel,
  AlertDialogContent,
  AlertDialogDescription,
  AlertDialogFooter,
  AlertDialogHeader,
  AlertDialogOverlay,
  AlertDialogPortal,
  AlertDialogTitle,
  AlertDialogTrigger,
  AlertTitle,
} from "@wunderui/react"

Examples

Plain

A neutral message.

Positive

Something worked.

Primary

Information worth noticing.

Negative

Something went wrong.

Warning

Something needs attention.

In context

How the component is used inside real screens — the same compositions as the Usage section of the Figma page.

Status modals grid

Alerts as the status line of confirmation cards.

Payment received
Invoice #4021 · €24,800
Deploy checkout-v3
Started 2 min ago
Storage
68 GB of 100 GB
Plan
Pro · renews Oct 1

API Reference

PropTypeDefault
variant"plain" | "positive" | "primary" | "negative" | "warning""plain"
size"small" | "large""large"
onClose() => void—