Modal

Dialog overlay for focused interactions and important information.

Basic Modal

Simple modal with content

Sizes

Different modal sizes

With Footer

Modal with action buttons in footer

Confirmation Dialog

Small modal for confirmations

PropTypeDefaultDescription
isOpenbooleanrequiredWhether the modal is open
onClose() => voidrequiredCallback when modal should close
titleReact.ReactNodeundefinedModal title
size'small' | 'medium' | 'large' | 'fullscreen''medium'Size of the modal
closeOnOverlayClickbooleantrueWhether clicking overlay closes the modal
closeOnEscapebooleantrueWhether pressing Escape closes the modal
showCloseButtonbooleantrueWhether to show close button
footerReact.ReactNodeundefinedFooter content

check_circleWhen to use

  • Use for focused tasks that require user attention
  • Use for confirmations before destructive actions
  • Use for forms that should be completed before continuing
  • Provide clear close mechanisms (button, overlay, escape)

cancelWhen not to use

  • Don't use for non-essential information (use toasts instead)
  • Don't stack multiple modals on top of each other
  • Don't use for long forms (use a dedicated page instead)
  • Don't prevent all close mechanisms for non-critical modals