- Android
- iOS
- Web
Confirm Alert
A Confirm Alert component is a UI element that prompts users to confirm or cancel an action before proceeding. It typically displays a message asking for confirmation, along with "Confirm" and "Cancel" buttons, ensuring that the user consciously approves or rejects the action, often used for critical tasks like deletions or irreversible changes.
Example.tsx
| Name | Type | Default | Details |
|---|---|---|---|
| isOpen | boolean | Optional | |
| description | string | Optional | |
| title | string | Optional | |
| className | string | Optional | |
| titleClassName | string | Optional | |
| descriptionClassName | string | Optional | |
| cancelClassName | string | Optional | |
| confirmClassName | string | Optional | |
| confirmText | string | Optional | |
| cancelText | string | Optional | |
| onResult | (result: boolean) => void | Required | |
| onOpenChange | ((open: boolean) => void) | Optional | |
| children | ReactNode | Optional |