A sophisticated modal dialog component for displaying critical information, warnings, and confirmation requests with full accessibility support and customizable styling
Prop | Type | Default | Description |
---|---|---|---|
title | ReactNode | Required | The alert’s title - should be clear and concise |
description | ReactNode | Required | The main content of the alert - supports rich text and components |
show | boolean | Required | Controls the alert’s visibility state |
isDestructive | boolean | false | When true, applies destructive styling (red color scheme) for dangerous actions |
isPerformingAction | boolean | false | Displays a loading spinner and disables interactions while processing |
confirmText | string | 'Confirm' | Custom text for the confirmation button - should be action-specific |
children | ReactNode | - | Additional content rendered below the description - perfect for custom UI elements |
onConfirm | () => void | - | Callback function executed when the user confirms the action |
onClose | () => void | Required | Callback function for handling alert dismissal |