Back to components

Modal

A modal dialog component with backdrop, keyboard support, and animations.

Examples

Interactive Modal

Props

PropTypeDefaultDescription
open*boolean-Whether the modal is open
onClose*() => void-Callback when the modal should close
titlestring-Modal title
descriptionstring-Modal description
size"sm" | "md" | "lg" | "xl""md"Size of the modal