Skip to content

Modal

Modals interrupt the user for focused tasks — confirmations, forms, or detailed views. Use sparingly.

ElementDescription
OverlaySemi-transparent backdrop, blocks interaction
ContainerCentered card, max-width 560px
HeaderTitle + optional close button
BodyScrollable content area
FooterAction buttons (Cancel + Confirm)
SizeWidthUse
Small400pxConfirmations, alerts
Medium560pxForms, dialogs
Large800pxDetailed views, wizards
Fullscreen100vwComplex workflows
  • Escape closes — pressing ESC should close the modal
  • Focus trap — Tab stays within modal
  • One action — modals should complete one task
  • Don’t stack — never open a modal from another modal