1. Docs
  2. Dialog

Dialog

A dialog is an overlay shown above other content in an application.

Installation

npx shadcn-ui@latest add dialog

Usage

Basic

Alert dialog

Set isDismissable to false on the DialogOverlay component and set the role on DialogContent to alertdialog

Sheet

Custom close button