Genesis
@stable

AlertDialog

Destructive confirmation with explicit action / cancel.

packages/ui/src/components/ui/alert-dialog.tsx

Import
Subpath export: @marktiderman/genesis-ui
import { 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

PropTypeDefaultDescription
asChildboolean—

AlertDialogTrigger

PropTypeDefaultDescription
asChildboolean—

AlertDialogContent

PropTypeDefaultDescription
asChildboolean—
overlayClassNamestring—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

PropTypeDefaultDescription
asChildboolean—

AlertDialogDescription

PropTypeDefaultDescription
asChildboolean—

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).

PropTypeDefaultDescription
asChildboolean—
variantenumdestructive

AlertDialogCancel

PropTypeDefaultDescription
asChildboolean—
Storybook
Storybook hosts the canonical visual reference with controls for every variant.