# 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: /en/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.
When to use
Use
- Actions completed on the current screen: submit, create, save
- Consequential actions such as delete or revoke (destructive)
- Secondary actions in dialogs, toolbars and table rows (outline, ghost)
Do not use
- Navigation to another page → link
- Immediate on/off → Switch
- Icon-only slots → IconButton
- CTAs on Website or Marketing surfaces → that context’s CTA (.button combo / --marketing-btn-*)
Anatomy
Label (required), leading icon (optional, 16px, 8px gap), container. Icon without a label is an IconButton, not a Button.
Placement
- One primary per work area. Secondary actions drop to outline or ghost (B-5).
- In dialogs, put the primary at the right end and Cancel to its left.
- Pair destructive with a confirmation step. Do not finish an irreversible action in one click.
Copy
- Start with a verb: ‘Create API key’, ‘Save changes’.
- Name the outcome instead of ‘OK’ or ‘Yes’: ‘Delete’, ‘Export’.
- Korean labels keep word-break: keep-all. Keep them short enough not to wrap.
Do and don’t
Each pair is tied to a real rule ID. Renders use the same preview document.
B-5 — Visually equal CTAs on one surface make the main action impossible to tell apart.
Do
Loading preview…
One primary plus an outline Cancel
Don’t
Loading preview…
Two primaries side by side
M-3 — Marketing CTAs use Marketing button tokens. Do not reuse Product compatibility tokens across contexts.
Do
Loading preview…
Use outline/ghost for Product secondary actions
Don’t
No render — rule only
Product secondary compatibility tokens as a Marketing CTA
ALL-1 — --ups-purple is decorative. Never an interactive button background.
Do
Loading preview…
Primary background is hsl(var(--primary))
Don’t
No render — rule only
--ups-purple as a button background
Source
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
File sha256 values are computed at build time and match /agent-manifest.json.