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
Headless UI API Reference - DialogDialogBackdrop
Headless UI API Reference - DialogBackdropProp | Type | Default |
---|---|---|
transition? | Transition | { duration: 0.2, ease: 'easeInOut' } |
...props? | HTMLMotionProps<"div"> | - |
DialogClose
Headless UI API Reference - DialogCloseDialogPanel
Headless UI API Reference - DialogPanelProp | Type | Default |
---|---|---|
from? | 'top' | 'bottom' | 'left' | 'right' | top |
transition? | Transition | { type: 'spring', stiffness: 150, damping: 25 } |
...props? | HTMLMotionProps<"div"> | - |
DialogHeader
Prop | Type | Default |
---|---|---|
...props? | React.ComponentProps<'div'> | - |
DialogTitle
Headless UI API Reference - DialogTitleDialogDescription
Headless UI API Reference - DialogDescriptionDialogFooter
Prop | Type | Default |
---|---|---|
...props? | React.ComponentProps<'div'> | - |