Dialog
A fully-managed, renderless dialog component jam-packed with accessibility and keyboard features, perfect for building completely custom dialogs and alerts.
Installation
Examples
From Left
Use the from
prop to change the direction of the dialog flip animation.
Props
Animate UI props
DialogPanel
Prop | Type | Default |
---|---|---|
from? | 'top' | 'bottom' | 'left' | 'right' | top |
transition? | Transition | { type: 'spring', stiffness: 150, damping: 25 } |
Credits
- We use Headless UI for the dialog component.
- We take our inspiration from Shadcn UI for the dialog style.