# Upstage Design System — RadioGroup (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/radiogroup/ · machine doc: /agent/components/product/radiogroup.md
## Required references (read these)
- /components/forms/RadioGroup.jsx — implementation · sha256 01dd3a6daa3d…
- /components/_types.d.ts — api · key RadioGroupProps
- /components/forms/RadioGroup.prompt.md — usage-note · sha256 de5b7d5be37e…
- /kit/rules/a11y-contract.json — a11y · key RadioGroup
## API (components/_types.d.ts RadioGroupProps)
- name?: string
- options?: Array<string | RadioOption> (default [])
- value?: string
- defaultValue?: string
- onChange?: (value: string) => void
- label?: React.ReactNode
- description?: React.ReactNode
- orientation?: "vertical" | "horizontal" (default vertical)
- disabled?: boolean (default false)
- style?: React.CSSProperties
## Accessibility contract
- keys: ArrowUp, ArrowDown, ArrowLeft, ArrowRight, Space
- aria: role=radiogroup, role=radio, aria-checked
- notes: roving tabindex — 선택된 항목만 탭 순서에 있다
## Unverified
- Browser behaviour is not verified here (static source check only).
지원 환경
Lift 1.2.3 의 참조 구현은 React 18 함수 컴포넌트다. 스타일은 인라인이고 색은 Product 토큰(hsl(var(--*)))을 참조하므로 styles.product.css 가 로드돼 있어야 한다. npm 패키지와의 대응은 이 저장소에서 확인하지 못했다.
API
components/_types.d.ts 의 RadioGroupProps 를 그대로 옮겼다.
| prop | type | default | doc |
|---|---|---|---|
name | string | — | |
options | Array<string | RadioOption> | [] | |
value | string | — | |
defaultValue | string | — | |
onChange | (value: string) => void | — | |
label | React.ReactNode | — | |
description | React.ReactNode | — | |
orientation | "vertical" | "horizontal" | vertical | |
disabled | boolean | false | |
style | React.CSSProperties | — |
RadioOption
| field | type | default | doc |
|---|---|---|---|
value required | string | — | |
label | React.ReactNode | — | |
description | React.ReactNode | — | |
disabled | boolean | false |
코드
가져오기 한 줄과 사용 지침 원문의 예시 코드다.
import { RadioGroup } from "./components/forms/RadioGroup.jsx";<RadioGroup label="배포 환경" defaultValue="prod"
options={[{value:"prod",label:"Production",description:"실사용 트래픽"},{value:"stage",label:"Staging"}]}
onChange={setEnv} />토큰 연결
구현 파일이 var() 로 직접 참조하는 토큰. 조건에 따라 이름을 조립하는 토큰(예: --state-${tone}-fg)은 빠진다.
--background, --border-medium, --disabled, --disabled-foreground, --font-sans, --foreground, --muted-foreground, --primary, --transition-colors
출처
components/forms/RadioGroup.jsximplementation · sha256 01dd3a6daa3d…components/_types.d.tsapi · RadioGroupPropscomponents/forms/RadioGroup.prompt.mdusage-note · sha256 de5b7d5be37e…kit/rules/a11y-contract.jsona11y · RadioGroup