The Dialog overlays content on the page. Compose it from Dialog, DialogTrigger, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, and DialogClose.
Preview
Usage
Installation
$ npx shadcn@latest add https://spark-ui-olive.vercel.app/r/dialog.json
Properties
| Prop | Type | Default | Description |
|---|---|---|---|
showCloseButton | boolean | true | DialogContent only: show the corner close button. |
open | boolean | — | Controlled open state of the dialog. |
onOpenChange | (open: boolean) => void | — | Called when the open state changes. |
className | string | — | Additional CSS classes. Available on every subcomponent. |