Skip to content

AlertDialog

stable

Confirmation dialog requiring explicit user action

OverlaysInteractive/Storybook ↗
import { AlertDialog } from "@nodus/design-system"
Loading demo…

Props

openrequired
Type booleanDefault

Controlled open state

onConfirmrequired
Type () => voidDefault

Called when user confirms

onCancelrequired
Type () => voidDefault

Called when user cancels

titlerequired
Type stringDefault

Alert heading

description
Type stringDefault

Explanatory text

confirmLabel
Type stringDefault "Confirm"

Confirm button text

cancelLabel
Type stringDefault "Cancel"

Cancel button text

variant
Type "danger" | "info"Default "danger"

Visual tone of the alert

Metadatasemantictypebordersurface
MobileTouch Target

Dialog renders full-width on mobile with fixed bottom positioning. Action buttons must be ≥44px and stack vertically if there are >2 actions.

Design Rationale

This component was designed to express:

Explore Related

Was this helpful?