# 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.
사용 조건
쓴다
- 폼 제출, 생성, 저장처럼 현재 화면에서 완료되는 동작
- 삭제·해지처럼 결과가 있는 동작 (destructive)
- 대화상자·툴바·표 행의 보조 동작 (outline · ghost)
쓰지 않는다
- 다른 페이지로 이동 → 링크
- 즉시 적용되는 on/off → Switch
- 아이콘만 놓을 자리 → IconButton
- Website·Marketing 면의 CTA → 각 맥락의 CTA (.button 콤보 / --marketing-btn-*)
Anatomy
라벨(필수) · 선행 아이콘(선택, 16px, gap 8px) · 컨테이너. 아이콘만 있으면 Button 이 아니라 IconButton 이다.
배치
- 한 작업 영역에서 primary 는 하나. 보조 동작은 outline·ghost 로 강조를 낮춘다(B-5).
- 대화상자에서는 primary 를 오른쪽 끝, 취소를 그 왼쪽에 둔다.
- destructive 는 확인 단계와 함께 쓴다. 되돌릴 수 없는 동작을 한 번의 클릭으로 끝내지 않는다.
문구
- 동사로 시작한다: ‘API 키 만들기’, ‘변경 사항 저장’.
- ‘확인’, ‘예’ 같은 문구 대신 결과를 적는다: ‘삭제’, ‘내보내기’.
- 한국어 라벨은 word-break: keep-all 을 유지한다. 두 줄로 접히지 않게 길이를 조절한다.
권장 · 비권장
각 쌍은 실제 규칙 ID 에 연결된다. 렌더는 같은 미리보기 문서를 쓴다.
B-5 — 한 면에 시각적으로 동등한 복수 CTA 를 두면 주요 동작을 구별할 수 없다.
Do
미리보기 불러오는 중…
primary 하나 + outline 취소
Don’t
미리보기 불러오는 중…
primary 두 개를 나란히
M-3 — Marketing CTA는 Marketing의 버튼 토큰을 사용합니다. Product 호환 토큰을 다른 맥락에 가져오지 않습니다.
Do
미리보기 불러오는 중…
Product 보조 동작은 outline·ghost로
Don’t
실제 렌더 없음 — 규칙 설명만
Product의 secondary 호환 토큰을 Marketing CTA로
ALL-1 — --ups-purple 은 장식용이다. 인터랙티브 버튼 배경으로 쓰지 않는다.
Do
미리보기 불러오는 중…
primary 배경은 hsl(var(--primary))
Don’t
실제 렌더 없음 — 규칙 설명만
--ups-purple 을 버튼 배경으로
출처
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 의 값과 같다.