Dialog

A modal dialog compound component built on Base UI's Dialog primitive, with overlay, content popup, header, footer, title, description, and close button sub-components.

Default
Destructive
Loading
No Close Button
Scrollable
With Form
With Icon

Installation

npx shadcn@latest add @byronwade/dialog

Props

PropTypeDefaultDescription
openbooleanControlled open state of the dialog.
defaultOpenbooleanUncontrolled initial open state.
onOpenChange(open: boolean) => voidCallback fired when the open state changes.
modalbooleantrueWhether the dialog blocks interaction with the rest of the page.