Atelier UI

Search components…

Search components…

Alert Dialog

Confirmation dialog for destructive actions; no backdrop dismiss and focus starts on Cancel.

Edit in sandbox

Copy a prompt for your AI coding tool with the source, dependencies and usage

Props

AlertDialogProps

PropTypeDefaultDescription
open* requiredboolean——
onOpenChange* required(open: boolean) => void——
title* requiredReact.ReactNode——
description* requiredReact.ReactNode——
cancelLabelstring"Cancel"—
actionLabelstring"Continue"—
destructivebooleanfalseStyle the action as destructive
iconReact.ReactNode—Optional icon shown above the title
onAction() => void——

Install

$ npx shadcn@latest add https://chromotion.dev/r/alert-dialog.json

More like this