Dialog
A window overlaid on either the primary window or another dialog window, rendering the content underneath inert.
Made by imskyleenInstallation
Usage
API Reference
Dialog
DialogTrigger
DialogContent
Prop | Type | Default |
---|---|---|
showCloseButton? | boolean | true |
from? | 'top' | 'bottom' | 'left' | 'right' | top |
transition? | Transition | { type: 'spring', stiffness: 150, damping: 25 } |
...props? | HTMLMotionProps<"div"> | - |
The asChild
and forceMount
properties are not supported in the
DialogContent
component, as it is used for animation.
DialogClose
DialogHeader
Animate UI API Reference - Dialog Header PrimitiveProp | Type | Default |
---|---|---|
...props? | React.ComponentProps<'div'> | - |
DialogTitle
DialogDescription
DialogFooter
Animate UI API Reference - Dialog Footer PrimitiveProp | Type | Default |
---|---|---|
...props? | React.ComponentProps<'div'> | - |
Credits
- Radix UI Dialog
- Credit to shadcn/ui for style inspiration.