shadcn.io is not affiliated with official shadcn/ui
Alert Dialog examples · Informational
Information with Action Button Alert Dialog for React
An informational dialog with a bell icon, a Not Now button and a Learn More action.
Information can be an invitation as well as a notice. This React alert dialog suggests enabling notifications and offers Not Now or Learn More, so people can decline gently or explore. It's shadcn.io's Alert Dialog on Base UI with a bell icon beside the title.
Preview
Installation
FAQ
What should the action say?
What happens next: Learn More opens details, it doesn't turn anything on. Avoid Yes or Proceed, which don't say where they lead.
Should Learn More change a setting?
No. Let it navigate to details or settings, and ask for the actual change there. This dialog informs and invites; it doesn't commit people to anything.
Why Not Now instead of Cancel?
It's softer and implies the offer still stands. Keep Cancel for forms and real decisions.
Does an information dialog always need two buttons?
Only when there's a meaningful action to offer. For plain acknowledgment, one button is enough, as in Simple Information Alert.
Related
- Simple Information Alert Alert DialogA simple informational dialog with one OK
- Simple Confirmation Dialog Alert DialogA simple confirmation dialog with Cancel
- Information with Icon Alert DialogAn informational dialog with an info icon
- Actions with Icons Alert DialogAn alert dialog whose action carries an
- Information with Centered Icon Alert DialogAn informational dialog with a centered
- Standard DialogA share dialog with a read-only link, a