Ballmac UI home

Alert

A semantic callout with five theme-aware tones, clear icon placement, an action row, and opt-in urgent announcements.

Workspace is protected
Two-factor authentication is active for every team member. Your security review is complete.

Installation

$ pnpm dlx shadcn@latest add @ballmac/alert

Usage

import { Alert, AlertTitle, AlertDescription, AlertAction } from "@/components/ballmac/alert"

The full example is in the Code tab above.

Examples

States and variants

Scheduled maintenance
Reports will pause for ten minutes tonight.
Review needed
One integration needs a new access token.

API reference

PropTypeDefault
urgent

Announce urgent messages; ordinary alerts remain in the reading order.

booleanfalse
variant"default" | "info" | "success" | "warning" | "destructive""default"

Also accepts the standard attributes of its root element.

Accessibility

KeyAction
Tabmoves to links and actions

Use with AI

A semantic callout with five theme-aware tones, clear icon placement, an action row, and opt-in urgent announcements. With the shadcn MCP server set up (guide), ask your agent:

Add the Ballmac UI Alert (@ballmac/alert) to this project with the shadcn MCP, then use it where it fits.

Use it for

  • Display a status or important message
  • Pair a warning with a clear next action

Not for

  • Use a toast for transient confirmation

Registry JSON: https://ui.ballmac.com/r/alert.json

Credits

Based on shadcn/ui Alert, adapted by Ballmac. Free to use in personal and commercial projects.

Registry
shadcn/utils