Centered modal with backdrop, focus trap, ESC-to-close, and stacked-modal support.
Modal is the centered-dialog primitive. Three size variants (small, medium, large) and a full-screen mode cover the common dialog patterns. Header, body, and footer slots structure the content consistently.
Focus is trapped inside the modal while open; on close, focus returns to the element that triggered the modal. Stacked modals (a modal opening another modal) work correctly — z-index and dismissal stack predictably.
Skip the manual import — ask your AI agent to build with this component. The Builder skill knows its props, variants, and idioms.