shadcn.io is not affiliated with official shadcn/ui
Alert Dialog examples · Informational
Information with Icon Alert Dialog for React
An informational dialog with an info icon beside the title and a single button to acknowledge it.
An icon tells people what kind of message this is before they read it. This React alert dialog adds an info icon beside the title of a feature announcement, with a single Got it button. It's shadcn.io's Alert Dialog on Base UI.
Preview
Installation
FAQ
What color should an info icon be?
text-info, the theme's blue for neutral information. Keep destructive, success and warning colors for messages with that weight.
Beside the title or above it?
Beside it, in a flex items-center gap-2 row, for routine information. Center it above the title for messages that need more attention.
Can different messages use different icons?
Yes, consistently: info for general notes, a lightbulb for tips, a bell for notifications. People learn the system.
Related
- Simple Information Alert Alert DialogA simple informational dialog with one OK
- Information with Long Content Alert DialogAn informational dialog with long content
- Confirmation with Icon Alert DialogA confirmation dialog with a warning icon
- Success with Icon Alert DialogA success dialog with a check icon beside
- Information with Status Badge Alert DialogAn informational dialog with a status
- Standard DialogA share dialog with a read-only link, a