shadcn.io is not affiliated with official shadcn/ui
Alert Dialog examples · Informational
Information with Status Badge Alert Dialog for React
An informational dialog with a status badge under the title announcing scheduled maintenance.
Status matters: upcoming maintenance isn't an outage. This React alert dialog puts an Upcoming badge under the title of a maintenance notice, with a calendar icon in the title. It's shadcn.io's Alert Dialog on Base UI with an info Badge.
Preview
Installation
FAQ
Where should the badge go?
Under the title, before the description, in AlertDialogHeader. The title says what, the badge says when, the description gives details.
Which badge variant should a status use?
variant="info" for upcoming, warning for pending, success for done, destructive for failures. The variants follow the theme in dark mode.
What should the badge say?
One or two words: Upcoming, In Progress, Completed. Times and details belong in the description.
Can I show several badges?
Avoid it; one status is clearer. Mention anything else in the description.
Related
- Information with Icon Alert DialogAn informational dialog with an info icon
- Badge with Text (Standard)A default badge with a short label for a
- Destructive with Warning Badge Alert DialogA destructive dialog with a Permanent
- Simple Information Alert Alert DialogA simple informational dialog with one OK
- Success with Centered Icon Alert DialogA success dialog with a large check icon
- Standard DialogA share dialog with a read-only link, a