Dialog
Installation
Install the component via the CLI in one command.
npx shadcn@latest add @intentui/dialog
Composed components
When you install this component via the CLI, it automatically loads all composed components, so you don’t need to add them individually.
Manual installation
Use this approach if you prefer to install and wire up the component yourself instead of using the CLI.
npm install react-aria-components @heroicons/react tailwind-merge
Component API
Dialog
Dialog extends the React Aria Components <Dialog> component.
classNamestringDialogBody
DialogBody extends the native <div> element.
classNamestringDialogCloseIcon
DialogCloseIcon extends the Intent UI <Button> component.
classNamestringisDismissableboolean | undefinedDialogClose
DialogClose extends the Intent UI <Button> component.
classNamestringintent"primary" | "secondary" | "warning" | "danger" | "success" | "outline" | "plain"plainDialogDescription
DialogDescription extends the React Aria Components <Text> component.
classNamestringDialogFooter
DialogFooter extends the native <div> element.
classNamestringDialogHeader
DialogHeader extends the native <div> element.
classNamestringdescriptionstringtitlestringDialogTitle
DialogTitle extends the React Aria Components <Heading> component.
classNamestringDialogTrigger
DialogTrigger extends the Intent UI <Button> component.
classNamestringSee the React Aria for the full API reference.
