AlertDialog
Destructive confirmation with explicit action / cancel.
packages/ui/src/components/ui/alert-dialog.tsx
Import
Subpath export:
@marktiderman/genesis-uiimport { AlertDialog } from "@marktiderman/genesis-ui";Exports
Re-exported from
@marktiderman/genesis-ui.- AlertDialog
- AlertDialogTrigger
- AlertDialogContent
- AlertDialogHeader
- AlertDialogTitle
- AlertDialogDescription
- AlertDialogFooter
- AlertDialogAction
- AlertDialogCancel
Components
Auto-generated from TypeScript source via
react-docgen-typescript.AlertDialog
No declared props.
AlertDialogPortal
No declared props.
AlertDialogOverlay
| Prop | Type | Default | Description |
|---|---|---|---|
| asChild | boolean | — |
AlertDialogTrigger
| Prop | Type | Default | Description |
|---|---|---|---|
| asChild | boolean | — |
AlertDialogContent
| Prop | Type | Default | Description |
|---|---|---|---|
| asChild | boolean | — | |
| overlayClassName | string | — | Classes for the backdrop rendered behind the content, merged after the defaults, e.g. `z-[60]` to lift it above a side panel that sits at `z-50`. Raise the content's own `className` to match. |
AlertDialogHeader
No declared props.
AlertDialogFooter
No declared props.
AlertDialogTitle
| Prop | Type | Default | Description |
|---|---|---|---|
| asChild | boolean | — |
AlertDialogDescription
| Prop | Type | Default | Description |
|---|---|---|---|
| asChild | boolean | — |
AlertDialogAction
The confirming button. `variant` defaults to `"destructive"` (red), the right colour for deleting; pass `"default"` when the action is not dangerous (publish, send, continue).
| Prop | Type | Default | Description |
|---|---|---|---|
| asChild | boolean | — | |
| variant | enum | destructive |
AlertDialogCancel
| Prop | Type | Default | Description |
|---|---|---|---|
| asChild | boolean | — |