Skip to content
Dumb UI

Search Dumb UI

Jump to a page or component, or switch the style

Search Dumb UI

Jump to a page or component, or switch the style

Alert

An inline message that stays in the page flow. Four variants and an optional dismiss button.

FeedbackDumb extras
Build minutes reset on the 1st
You have 1,240 of 6,000 minutes left.
Props
$ pnpm dlx shadcn@latest add @dumb/alert

Needs the @dumb registry in components.json and the style tokens. See Installation.

import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"
<Alert>
  <InfoIcon />
  <AlertTitle>Build minutes reset on the 1st</AlertTitle>
  <AlertDescription>You have 1,240 left this month.</AlertDescription>
</Alert>

Variants

Default, success, warning, destructive.

Maintenance on Sunday
Builds may queue for up to 10 minutes.
Domain verified
ui.1619.in now serves production.
Certificate expires in 6 days
Renewal runs automatically unless DNS changed.

Dismissible

onDismiss renders a close button; you own the visibility.

New: branch protections
Require a passing build before merging into main.

API reference

Props marked “extra” are Dumb UI additions. Everything else matches shadcn/ui.

Alert

PropTypeDefault
variant"default" | "success" | "warning" | "destructive"

Tone of the message. Destructive uses role=alert; others role=status.

"default"
onDismissextra() => void

Renders a close button.

-
dismissLabelextrastring

Accessible label for the close button.

"Dismiss"