--- title: Dialog description: A window overlaid on either the primary window or another dialog window, rendering the content underneath inert. source: apps/www/src/lib/registry/default/ui/dialog primitive: https://www.radix-vue.com/components/dialog.html --- ## Installation ```bash npx shadcn-vue@latest add dialog ``` ## Usage ```vue ``` ## Examples ### Custom close button ## Notes To activate the `Dialog` component from within a `Context Menu` or `Dropdown Menu`, you must encase the `Context Menu` or `Dropdown Menu` component in the `Dialog` component. For more information, refer to the linked issue [here](https://github.com/radix-ui/primitives/issues/1836). ```js:line-numbers showLineNumber{14-25} Right click Open Download Delete Are you absolutely sure? This action cannot be undone. Are you sure you want to permanently delete this file from our servers? ```