Installation
Preview
Usage
Examples
Basic
- Preview
- Code
Usage notes
Always include DialogTitle for accessibility. Use DialogDescription for context.Avoid
- Do not omit DialogTitle
- Do not nest dialogs
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
A window overlaid on either the primary window or another dialog window.
import { Dialog } from '@/components/ui/dialog'
<Dialog>
<DialogTrigger>Open</DialogTrigger>
<DialogContent>
<DialogHeader>
<DialogTitle>Title</DialogTitle>
</DialogHeader>
</DialogContent>
</Dialog>