Components

Alert Dialog

A modal dialog that interrupts the user with important content and expects a response.

Loading

Installation

pnpm dlx shadcn@latest add @toui/alert-dialog

Examples

Destructive

Loading

API Reference

This component is built using Radix UI Alert Dialog primitives and includes the following custom props:

AlertDialog

This component is based on the AlertDialog.Root primitive and includes the following custom props:

PropTypeDefault
variant enum info
dismissable booleantrue

AlertDialogAction

This component is based on the AlertDialog.Action primitive and includes the following custom props:

PropTypeDefault
variant enum default

Credits

We use cookies

We use cookies to ensure you get the best experience on our website. For more information on how we use cookies, please see our cookie policy.

By clicking Accept, you agree to our use of cookies.
Learn more.