Dialog
A fully-managed, renderless dialog component jam-packed with accessibility and keyboard features, perfect for building completely custom dialogs and alerts.
Made by imskyleenInstallation
Usage
API Reference
Dialog
DialogBackdrop
Prop | Type | Default |
---|---|---|
transition? | Transition | { duration: 0.2, ease: 'easeInOut' } |
...props? | HTMLMotionProps<"div"> | - |
DialogClose
DialogPanel
Prop | Type | Default |
---|---|---|
from? | 'top' | 'bottom' | 'left' | 'right' | top |
transition? | Transition | { type: 'spring', stiffness: 150, damping: 25 } |
...props? | HTMLMotionProps<"div"> | - |
DialogHeader
Animate UI API Reference - Dialog Header PrimitiveProp | Type | Default |
---|---|---|
...props? | React.ComponentProps<'div'> | - |
DialogTitle
DialogDescription
Animate UI API Reference - Dialog Description PrimitiveHeadless UI API Reference - DialogDescription
DialogFooter
Animate UI API Reference - Dialog Footer PrimitiveProp | Type | Default |
---|---|---|
...props? | React.ComponentProps<'div'> | - |
Credits
- Headless Dialog
- Credit to shadcn/ui for style inspiration.