# Upstage Design System — Button (product)
- context: product
- source revision: lift-1.2.3 (Lift 1.2.3, zip sha256 8d5d9377c2b4…)
- content: draft · availability: implemented · verification: static-only (2026-09-23, target lift-1.0.1)
- human docs: /ko/components/product/button/ · machine doc: /agent/components/product/button.md
## Required references (read these)
- /components/actions/Button.jsx — implementation · sha256 eb415a532465…
- /components/_types.d.ts — api · key ButtonProps · sha256 3008e22ddb76…
- /tokens/tokens.product.css — tokens · sha256 b179a0dd277f…
- /kit/context/DESIGN.product.md — rules · B-5 · sha256 b7bc4b85ecf9…
- /kit/rules/a11y-contract.json — a11y · key Button · sha256 55f9ac141668…
- /kit/rules/forbidden-rules.json — rules · sha256 6172deb95cd7…
- /kit/tokens/token-intents.json — intent · key action.primary · sha256 61c49fbf5458…
## Reference examples
- /components/actions/Button.prompt.md — usage-note
## API (from components/_types.d.ts ButtonProps / Button.jsx)
- variant: "primary" | "secondary" | "destructive" | "outline" | "ghost" | "accent" — Visual variant. Prefer outline/ghost for secondary actions; secondary is a deprecated outline alias. (default primary)
- size: "sm" | "md" | "lg" — Control height: sm 32 / md 40 / lg 48 (default md)
- disabled: boolean (default false)
- children: React.ReactNode
- style: React.CSSProperties
- sizes: sm 32px, md 40px, lg 48px
- variants: primary, secondary, destructive, outline, ghost, accent
## Rules that apply
- B-5 (DESIGN.product.md §8): one primary action per view; secondary actions are outline/ghost. The secondary variant is a deprecated outline alias.
- M-3 (forbidden-rules.json): use Marketing button tokens for Marketing CTAs, not Product secondary compatibility tokens.
- ALL-1 (forbidden-rules.json): --ups-purple is never an interactive button background.
- a11y-contract.json Button: keys Enter, Space; aria aria-disabled; type="button" 기본
## Unverified
- @upstageai/ui package mapping is not verified in this repository.
- hover/active/focus/disabled behaviour: static source check only.
계약 (a11y-contract.json)
| keys | Enter, Space |
|---|---|
| aria | aria-disabled |
| notes | type="button" 기본 |
| version | 0.5.0 |
이름 · 역할 · 상태
역할은 네이티브 button 이다. 이름은 라벨 텍스트에서 온다. 아이콘만 있으면 IconButton 과 aria-label 을 쓴다. disabled 는 DOM disabled + aria-disabled 로 전달된다.
키보드
Tab 으로 도달, Enter·Space 로 실행(a11y-contract.json Button.keys). 구현은 Enter·Space keydown 에서 active 상태를 보여준다.
포커스
data-ds-focus 가 달려 있어 tokens/a11y.css 의 공통 포커스 링(3px, --focus-ring-color, offset 2px)이 :focus-visible 에서 나타난다. 컴포넌트가 자체 링을 그리지 않는다.
오류 · 피드백
실행 결과는 버튼 색만으로 전하지 않는다. 성공·실패는 Toast·Banner 등 DOM 텍스트로 알린다. 구현에 loading 상태는 없으므로 진행 중 표시가 필요하면 별도 텍스트로 처리한다.
대비
product.css 주석에 기록된 대비: primary hover 6.51:1, active 8.04:1, destructive hover 6.16:1, active 7.99:1, accent hover 8.27:1, active 6.72:1. 기본 상태와 disabled 조합은 이 사이트에서 측정하지 않았다.
검증 여부
검증 상태: static-only. 스크린 리더·키보드 동작의 브라우저 검증은 미실시.
출처
components/actions/Button.jsximplementation · lift-1.2.3 1.2.3 ·eb415a532465components/_types.d.tsapi · ButtonProps · lift-1.2.3 1.2.3 ·3008e22ddb76components/actions/Button.prompt.mdusage-note · lift-1.2.3 1.2.3 ·8f351773e8fftokens/tokens.product.csstokens · lift-1.2.3 1.2.3 ·b179a0dd277fkit/context/DESIGN.product.mdrules · B-5 · lift-1.2.3 1.2.3 ·b7bc4b85ecf9kit/rules/a11y-contract.jsona11y · Button · lift-1.2.3 1.2.3 ·55f9ac141668kit/rules/forbidden-rules.jsonrules · lift-1.2.3 1.2.3 ·6172deb95cd7kit/tokens/token-intents.jsonintent · action.primary · lift-1.2.3 1.2.3 ·61c49fbf5458
파일 sha256 은 빌드 시 계산했다. /agent-manifest.json 의 값과 같다.