# Upstage Design System — Badge (product)
- context: product · group: display
- source revision: lift-1.2.3 (Lift 1.2.3, zip sha256 8d5d9377c2b4…)
- status: content source-derived · availability implemented · verification static-only
- human docs: /en/components/product/badge/ · machine doc: /agent/components/product/badge.md
## Required references (read these)
- /components/display/Badge.jsx — implementation · sha256 320b3c3d0c1c…
- /components/_types.d.ts — api · key BadgeProps
- /components/display/Badge.prompt.md — usage-note · sha256 cd4494c8c276…
## API (components/_types.d.ts BadgeProps)
- tone?: string (default gray) — Categorical: coral, skyblue, olive, purple, mint, magenta, teal, burgundy, green, gray, yellow — or state: success, warning, info, error
- variant?: "soft" | "solid" (default soft) — soft (tinted bg, default) or solid (neutral-900 badge tokens)
- children?: React.ReactNode
- style?: React.CSSProperties
## Unverified
- Browser behaviour is not verified here (static source check only).
Supported environment
The Lift 1.2.3 reference implementation is a React 18 function component with inline styles referencing Product tokens (hsl(var(--*))), so styles.product.css must be loaded. The mapping to an npm package could not be verified in this repository.
API
Copied from BadgeProps in components/_types.d.ts.
| prop | type | default | doc |
|---|---|---|---|
tone | string | gray | Categorical: coral, skyblue, olive, purple, mint, magenta, teal, burgundy, green, gray, yellow — or state: success, warning, info, error |
variant | "soft" | "solid" | soft | soft (tinted bg, default) or solid (neutral-900 badge tokens) |
children | React.ReactNode | — | |
style | React.CSSProperties | — |
Code
One import line plus the example code from the usage note.
import { Badge } from "./components/display/Badge.jsx";<Badge>새 기능</Badge>
<Badge tone="success">Active</Badge>
<Badge tone="purple">Beta</Badge>
<Badge variant="solid">Default</Badge><span class="badge">새 기능</span>.badge {
display: inline-flex;
align-items: center;
gap: 5px;
min-height: 22px;
padding: 2px 8px;
border-radius: 4px;
font-family: var(--font-sans);
font-size: 12px;
font-weight: 600;
background: hsl(var(--accent-gray-bg));
color: hsl(var(--accent-gray-fg));
}Token bindings
Tokens the implementation references with var(). Names assembled at runtime (e.g. --state-${tone}-fg) are not listed.
--accent-, --badge-default, --badge-default-foreground, --font-sans, --state-
Source
components/display/Badge.jsximplementation · sha256 320b3c3d0c1c…components/_types.d.tsapi · BadgePropscomponents/display/Badge.prompt.mdusage-note · sha256 cd4494c8c276…