Skip to content
Layout

Modal

An accessible dialog with backdrop, focus trap, and configurable size.

Preview:
1280px

Modal renders as an overlay — trigger via button in your app.

Props

PropTypeDefaultDescription
openbooleanfalseControls visibility.
onClose() => void-Fired on backdrop click or Escape key.
titlestring-Modal heading.
size'sm' | 'md' | 'lg''md'Controls max width.
footerReactNode-Content in the modal footer (action buttons).