# Upstage Design System — Modal (product)
- context: product · group: overlays
- source revision: lift-1.2.3 (Lift 1.2.3, zip sha256 8d5d9377c2b4…)
- status: content source-derived · availability implemented · verification static-only
- human docs: /en/components/product/modal/ · machine doc: /agent/components/product/modal.md
## Required references (read these)
- /components/overlays/Modal.jsx — implementation · sha256 f59637afd452…
- /components/_types.d.ts — api · key ModalProps
- /components/overlays/Modal.prompt.md — usage-note · sha256 b4b22f468c75…
- /kit/rules/a11y-contract.json — a11y · key Modal
## API (components/_types.d.ts ModalProps)
- open?: boolean
- onClose?: () => void
- title?: React.ReactNode
- description?: React.ReactNode
- footer?: React.ReactNode
- size?: "sm" | "md" | "lg" (default md)
- children?: React.ReactNode
- style?: React.CSSProperties
## Accessibility contract
- keys: Tab(trap), Shift+Tab, Escape
- aria: role=dialog, aria-modal, aria-labelledby, aria-describedby
- notes: 포커스를 오프너로 복원, body 스크롤 잠금
## Unverified
- Browser behaviour is not verified here (static source check only).
Contract (a11y-contract.json)
| keys | Tab(trap), Shift+Tab, Escape |
|---|---|
| aria | role=dialog, aria-modal, aria-labelledby, aria-describedby |
| notes | 포커스를 오프너로 복원, body 스크롤 잠금 |
State and accessibility (usage note)
components/overlays/Modal.prompt.mdOriginal · KO · not translated
1.9.4 상태·접근성 계약
onClose 인라인 함수는 지원된다. 최신 콜백을 참조하고 부모 재렌더는 포커스를 초기화하지 않는다. 최상위 모달만 Tab/Escape를 처리하며 중첩 모달이 닫혀도 남은 모달의 스크롤 잠금은 유지한다.
Focus
The shared Product focus ring is defined in tokens/a11y.css. This implementation sets data-ds-focus.
Verification
Statically transcribed from the Lift sources (implementation, prop contract, usage note, accessibility contract). Keyboard, screen reader and contrast behaviour were not verified in a browser.
Source
components/overlays/Modal.jsximplementation · sha256 f59637afd452…components/_types.d.tsapi · ModalPropscomponents/overlays/Modal.prompt.mdusage-note · sha256 b4b22f468c75…kit/rules/a11y-contract.jsona11y · Modal