Dialog

Accessible modal with backdrop blur, Escape-to-close, scroll lock and a portal so it never gets clipped.

Import

import { Dialog, Button } from "@igorao79/uivix";

Examples

Confirm

Click to open

Props

PropTypeDefaultDescription
openboolean-Whether the dialog is visible
onClose() => void-Called on Escape, backdrop click or the close button
titleReactNode-Heading
descriptionReactNode-Text under the heading
footerReactNode-Footer content, usually buttons
closeOnBackdropbooleantrueClose when the backdrop is clicked
size"sm" | "md" | "lg""md"Max width
classNamestring-Additional CSS classes