Confirm dialog

controlsFreeMIT

Confirmation on the native dialog: both buttons name the action, the safe one has focus, red only when something is destroyed, optional type-to-confirm.

npx shadcn@latest add https://mikkelmanniche.dk/lab/r/confirm-dialog.json
Width

Preview

The preview could not load.

Live demo in the dark theme.

Details

Dependencies

Files

  • confirm-dialog.tsx