Alert Dialog
stableA modal dialog that interrupts the user and expects a response.
Basic usage
Examples
With async action
Disable the action button while async work is in progress.
Destructive confirmation
AlertDialog blocks outside interaction and starts focus on the safest action.
Features
- Focus starts on Cancel.
- Outside interaction is blocked.
Installation
bash
pnpm dlx structyl add alert-dialogAPI Reference
Alert Dialog API reference
Full props, types, defaults, and all 11 parts.