Alert Dialog

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

@lucide/react

Installation


1

Install the following dependencies:

npx shadcn@latest add https://sbthemes-storev2.vercel.app/r/alert-dialog.json

API Reference

Root

Contains all the parts of an alert dialog.

PropTypeDefault
defaultOpenboolean-
openboolean-
onOpenChangefunction-

Trigger

A button that opens the dialog.

PropTypeDefault
asChildbooleanfalse
Data attributeValues
[data-state]"open" / "closed"