# Upstage Design System — Switch (product)
- context: product · group: forms
- 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/switch/ · machine doc: /agent/components/product/switch.md
## Required references (read these)
- /components/forms/Switch.jsx — implementation · sha256 59fc087f3990…
- /components/_types.d.ts — api · key SwitchProps
- /components/forms/Switch.prompt.md — usage-note · sha256 3fca7568a4e7…
- /kit/rules/a11y-contract.json — a11y · key Switch
## API (components/_types.d.ts SwitchProps)
- checked?: boolean
- defaultChecked?: boolean (default false)
- onChange?: (checked: boolean) => void
- disabled?: boolean (default false)
- label?: React.ReactNode
- describedBy?: string — 보조 설명 요소의 id (aria-describedby).
- style?: React.CSSProperties
## Accessibility contract
- keys: Space, Enter
- aria: role=switch, aria-checked, aria-labelledby
## Unverified
- Browser behaviour is not verified here (static source check only).
계약 (a11y-contract.json)
| keys | Space, Enter |
|---|---|
| aria | role=switch, aria-checked, aria-labelledby |
| notes | — |
상태 · 접근성 (사용 지침)
원본에 상태·접근성 계약 절 없음.
포커스
Product 공통 포커스 링은 tokens/a11y.css 가 정한다. 이 구현은 data-ds-focus 를 단다.
검증 여부
Lift 원본(구현 · prop 계약 · 사용 지침 · 접근성 계약)을 정적으로 옮겼다. 키보드 · 스크린리더 · 대비의 브라우저 검증은 하지 않았다.
출처
components/forms/Switch.jsximplementation · sha256 59fc087f3990…components/_types.d.tsapi · SwitchPropscomponents/forms/Switch.prompt.mdusage-note · sha256 3fca7568a4e7…kit/rules/a11y-contract.jsona11y · Switch