Components · Overlays
Confirmation dialog that requires an explicit user action before proceeding.
import { Alert Dialog } from '@nexub/react';| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
| AlertDialog.Root | compound | — | — | Root provider component that manages open state. |
| AlertDialog.Trigger | compound | — | — | Element that opens the dialog on interaction. |
| AlertDialog.Portal | compound | — | — | Portals the overlay and content into the document body. |
| AlertDialog.Overlay | compound | — | — | Dimmed backdrop rendered behind the content. |
| AlertDialog.Content | compound | — | — | The dialog panel containing title, description, and actions. |
| AlertDialog.Title | compound | — | — | Accessible title announced to screen readers. |
| AlertDialog.Description | compound | — | — | Supporting description text for the dialog. |
| AlertDialog.Action | compound | — | — | Confirms the destructive or affirmative action and closes the dialog. |
| AlertDialog.Cancel | compound | — | — | Cancels the action and closes the dialog. |