Skip to main content

AlertDialog

A composable component for important confirmations and alerts with customizable actions.

Anchor to children
children
React.ReactNode
required

The trigger element that opens the alert dialog

Anchor to description
description
string
required

The description text shown in the alert dialog body

Anchor to onConfirmationAction
onConfirmationAction
() => void
required

Callback fired when the confirmation button is clicked

Anchor to onOpenChange
onOpenChange
(open: boolean) => void
required

Callback fired when the alert dialog open state changes

Anchor to title
title
string
required

The title text shown in the alert dialog header

Anchor to cancelButtonText
cancelButtonText
string

The text shown in the cancel button

Anchor to confirmationButtonText
confirmationButtonText
string

The text shown in the confirmation button

boolean

Whether the alert dialog is open


Was this page helpful?