# 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: /ko/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).
계약 (a11y-contract.json)
| keys | Tab(trap), Shift+Tab, Escape |
|---|---|
| aria | role=dialog, aria-modal, aria-labelledby, aria-describedby |
| notes | 포커스를 오프너로 복원, body 스크롤 잠금 |
상태 · 접근성 (사용 지침)
components/overlays/Modal.prompt.md원문 · KO · 번역하지 않았다
1.9.4 상태·접근성 계약
onClose 인라인 함수는 지원된다. 최신 콜백을 참조하고 부모 재렌더는 포커스를 초기화하지 않는다. 최상위 모달만 Tab/Escape를 처리하며 중첩 모달이 닫혀도 남은 모달의 스크롤 잠금은 유지한다.
포커스
Product 공통 포커스 링은 tokens/a11y.css 가 정한다. 이 구현은 data-ds-focus 를 단다.
검증 여부
Lift 원본(구현 · prop 계약 · 사용 지침 · 접근성 계약)을 정적으로 옮겼다. 키보드 · 스크린리더 · 대비의 브라우저 검증은 하지 않았다.
출처
components/overlays/Modal.jsximplementation · sha256 f59637afd452…components/_types.d.tsapi · ModalPropscomponents/overlays/Modal.prompt.mdusage-note · sha256 b4b22f468c75…kit/rules/a11y-contract.jsona11y · Modal