Dialog
A window overlaid on either the primary window or another dialog window, rendering the content underneath inert.
We take the Shadcn UI component and animate it with Motion.
Installation
Examples
From Left
Use the from
prop to change the direction of the dialog flip animation.
Props
Animate UI props
DialogContent
Prop | Type | Default |
---|---|---|
from? | 'top' | 'bottom' | 'left' | 'right' | top |
transition? | Transition | { type: 'spring', stiffness: 150, damping: 25 } |