shadcn.io is not affiliated with official shadcn/ui
Alert Dialog examples · Destructive
Destructive with Consequence Details Alert Dialog for React
A destructive dialog that lists what revoking an API key breaks in a tinted panel.
Saying an action is permanent isn't enough; people need to see what breaks. This React alert dialog lists the consequences of revoking an API key in a destructive-tinted panel before the Revoke Access action. It's shadcn.io's Alert Dialog on Base UI with the panel as plain theme classes.
Preview
Installation
FAQ
Why a tinted panel for the list?
bg-destructive/10 with text-destructive ties the list to the destructive action without the glare of a solid red block. The theme tokens keep it readable in light and dark mode.
How many consequences should I list?
Three to five, one per line, each a short phrase. More than that and people skim past the list.
In what order?
Most severe and immediate first, procedural notes like Cannot be reversed last. People read the top items most carefully.
How should I word them?
Directly and actively: Disable all API requests using this key, not Requests may be affected. Hedging undermines a warning.
Related
- Confirmation with Detailed Description Alert DialogA confirmation dialog that lists every
- Simple Delete Confirmation Alert DialogA simple delete confirmation with a
- Destructive with Checkbox Confirmation Alert DialogA destructive dialog whose delete action
- Destructive with Warning Badge Alert DialogA destructive dialog with a Permanent
- Standard with Title AlertA neutral alert with only a title, for a
- Standard CardA basic card with a title, a description