Alert Dialog
The Alert Dialog component is used to show Alert.
1. Import
KUMUI exports 9 AlertDialog-related components:
import { AlertDialog, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogTitle, AlertDialogDescription, AlertDialogFooter, AlertDialogCancel, AlertDialogAction } from "@rohitgadekar/kimui";
2. Usage
3. API
3.1 AlertDialog
| Attribute | Type | Description | Default |
|---|---|---|---|
| Children | React.ReactNode | Children Props AlertDialog. | - |
3.2 AlertDialogTrigger
| Attribute | Type | Description | Default |
|---|---|---|---|
| Children | React.ReactNode | AlertDialogTrigger for AlertDialog. | - |
3.3 AlertDialogContent
| Attribute | Type | Description | Default |
|---|---|---|---|
| Children | React.ReactNode | AlertDialogContent Text For AlertDialog. | - |
3.4 AlertDialogHeader
| Attribute | Type | Description | Default |
|---|---|---|---|
| Children | React.ReactNode | AlertDialogHeader Text For AlertDialog. | - |
3.5 AlertDialogDescription
| Attribute | Type | Description | Default |
|---|---|---|---|
| Children | React.ReactNode | AlertDialogDescription Text For AlertDialog. | - |
3.6 AlertDialogFooter
| Attribute | Type | Description | Default |
|---|---|---|---|
| Children | React.ReactNode | AlertDialogFooter Text For AlertDialog. | - |
3.7 AlertDialogCancel
| Attribute | Type | Description | Default |
|---|---|---|---|
| Children | React.ReactNode | AlertDialogCancel Text For AlertDialog. | - |
3.8 AlertDialogAction
| Attribute | Type | Description | Default |
|---|---|---|---|
| Children | React.ReactNode | AlertDialogAction Text For AlertDialog. | - |