A modal dialog that interrupts the user with important content and expects a response.
@lucide/reactInstall the following dependencies:
Contains all the parts of an alert dialog.
Prop | Type | Default |
---|---|---|
defaultOpen | boolean | - |
open | boolean | - |
onOpenChange | function | - |
A button that opens the dialog.
Prop | Type | Default |
---|---|---|
asChild | boolean | false |
Data attribute | Values |
---|---|
[data-state] | "open" / "closed" |