Alert dialog default
Install
npx shadcn add @syncrobotic/alert-dialog Also installs: radix-ui, @syncrobotic/cn, @syncrobotic/button
Overview
A dialog that confirms an action that cannot be undone. The confirm button names the consequence.
When to use
- Delete a route, stop all robots, revoke access.
Use something else
- A reversible action: do it, and offer Undo in a Toast.
More examples
States and real uses. Each example is also a Storybook story and a visual regression test.
Alert dialog confirm
Patterns
Ready-made uses of alert dialog with real data and copy. Each installs as source under its own name.
Confirm a destructive action
An action that cannot be undone, confirmed by typing the thing's name.
- The confirm button repeats the verb and stays disabled until the name matches.
- The destructive button is an outline in danger, never solid red.
Confirm a deletion
A dialog for something that cannot be undone: what is lost, who it affects, and the name typed to confirm.
Install
npx shadcn add @syncrobotic/dialog-confirm-destructive Built from
1280px
Usage rules
- Only for actions that cannot be undone.
- The confirm names the consequence (“Delete 38 GB”); the cancel names what is kept.
Changelog
- 0.6.02026-11-17Scrim fades in; the dialog appears and disappears.
- 0.5.02026-11-17First versioned release. Earlier history is in CHANGELOG.md.