ReUI
Components

Dialog

A modal dialog that interrupts the user with important content and expects a response.

Installation

pnpm dlx shadcn@latest add https://reui.io/r/dialog.json

Examples

Default

Loading

No Overlay

Loading

Scrollable

Loading

Fullscreen

Loading

API Reference

This component is built using Radix UI Dialog primitives. For detailed information, please visit the full API reference.

Dialog

This component is based on the Dialog.Root primitive. For more details, refer to the original documentation.

DialogTrigger

This component is based on the Dialog.Trigger primitive. For more details, refer to the original documentation.

DialogPortal

This component is based on the Dialog.Portal primitive. For more details, refer to the original documentation.

DialogOverlay

This component is based on the Dialog.Overlay primitive and includes the following custom props:

PropTypeDefault
className string

DialogContent

This component is based on the Dialog.Content primitive and includes the following custom props:

PropTypeDefault
close booleantrue
className string

DialogClose

This component is based on the Dialog.Close primitive. For more details, refer to the original documentation.

DialogHeader

This component is a custom implementation for the dialog header section that provides a consistent layout for the title and description.

PropTypeDefault
className string

DialogFooter

This component is a custom implementation for the dialog footer section that provides a responsive layout for action buttons.

PropTypeDefault
className string

DialogTitle

This component is based on the Dialog.Title primitive and includes the following custom props:

PropTypeDefault
className string

DialogDescription

This component is based on the Dialog.Description primitive and includes the following custom props:

PropTypeDefault
className string