Dialog
Understand the design system and contribute to it
Component preview
The live preview for UI components is handled by components/atoms/codedocs/ComponentPreview.tsx. Use it directly inside MDX whenever you want a playground-style embed. Provide componentProps to set default values and propOptions to surface toggle-able props next to the preview.
Prop reference
Auto-generated from the component source
Dialog
All props are forwarded to the underlying primitive.
React.ComponentProps<typeof DialogPrimitive.Root>
DialogClose
All props are forwarded to the underlying primitive.
React.ComponentProps<typeof DialogPrimitive.Close>
DialogContent
classNamechildrenshowCloseButton= true
React.ComponentProps<typeof DialogPrimitive.Content> & { showCloseButton?: boolean; }
DialogDescription
className
React.ComponentProps<typeof DialogPrimitive.Description>
DialogFooter
className
React.ComponentProps<"div">
DialogHeader
className
React.ComponentProps<"div">
DialogOverlay
className
React.ComponentProps<typeof DialogPrimitive.Overlay>
DialogPortal
All props are forwarded to the underlying primitive.
React.ComponentProps<typeof DialogPrimitive.Portal>
DialogTitle
className
React.ComponentProps<typeof DialogPrimitive.Title>
DialogTrigger
All props are forwarded to the underlying primitive.
React.ComponentProps<typeof DialogPrimitive.Trigger>