Dialog
A modal window that interrupts the user to gather a response.
- Overlays
- 1 file
- 1 npm package
- Accessibility notes
pnpm dlx @dowel-ui/cli add dialognpm packages installed: radix-ui.
import { Dialog } from "@/components/ui/dialog";Default
Confirmation
Without Close Button
Scrolling Content
Spring
<DialogOverlay>
Every prop of Radix UI’s Dialog.Overlay, plus className.
<DialogContent>
| Prop | Type | Default |
|---|---|---|
animationHow the dialog enters. | "default" | "spring" | "default" |
showCloseButtonRenders the built-in close button. Turn off to supply your own. | boolean | true |
Every prop of Radix UI’s Dialog.Content, plus className.
<DialogHeader>
Plus every attribute of <div>.
<DialogFooter>
Plus every attribute of <div>.
<DialogTitle>
Every prop of Radix UI’s Dialog.Title, plus className.
<DialogDescription>
Every prop of Radix UI’s Dialog.Description, plus className.
8/8
checks passed
- Tested — passes
- axe assertion — passes
- Keyboard tested — does not apply
- Storybook examples — passes
- Accessibility documented — passes
- Semantic tokens only — passes
- Motion from tokens — passes
- className merged — passes
- Visible focus — does not apply
- No fixed widths — passes