Skip to content
nexubDesign System
v2.4.0

Components · Overlays

Alert Dialog

StableSince v0.0.1

Confirmation dialog that requires an explicit user action before proceeding.

import { AlertDialog } from '@nexub/react';

Examples

Default

Props

Props
PropTypeDefaultDescription
AlertDialog.Rootcompound—Root provider component that manages open state.
AlertDialog.Triggercompound—Element that opens the dialog on interaction.
AlertDialog.Portalcompound—Portals the overlay and content into the document body.
AlertDialog.Overlaycompound—Dimmed backdrop rendered behind the content.
AlertDialog.Contentcompound—The dialog panel containing title, description, and actions.
AlertDialog.Titlecompound—Accessible title announced to screen readers.
AlertDialog.Descriptioncompound—Supporting description text for the dialog.
AlertDialog.Actioncompound—Confirms the destructive or affirmative action and closes the dialog.
AlertDialog.Cancelcompound—Cancels the action and closes the dialog.