AlertDialog.
Confirmation dialog for important choices.
The preview uses the actual shared component, including your current theme, rounding, border and motion preferences.
Props & API reference
Parameters available in the shared component, including value types, requirements and accepted options.
| Parameter | Type | Required | Default | Possible values | Description |
|---|---|---|---|---|---|
open | boolean | Yes | — | true · false | Controlled confirmation state. |
onOpenChange | (open: boolean) => void | Yes | — | — | Visibility change callback. |
title | string | Yes | — | — | Confirmation heading. |
onConfirm | () => void | Yes | — | — | Executes confirmed action. |
description | string | No | — | — | Supporting question/warning. |
actionLabel | string | No | Confirm | — | Confirm button text. |
cancelLabel | string | No | Cancel | — | Dismiss button text. |
danger | boolean | No | false | true · false | Style action as destructive. |
children | ReactNode | No | — | — | Optional further content. |