LiftDesign System
Beta
한국어 Get started
  1. Components
  2. Product
  3. Badge

Components / Product

Badge — Implementation

Status and category label

Context
Product
Content
source-derived
Availability
implemented
Verification
static-only 2026-11-18
Source revision
Lift 1.2.3 320b3c3d0c1c…
Source language
KO·EN · not translated

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.

proptypedefaultdoc
tonestringgrayCategorical: coral, skyblue, olive, purple, mint, magenta, teal, burgundy, green, gray, yellow — or state: success, warning, info, error
variant"soft" | "solid"softsoft (tinted bg, default) or solid (neutral-900 badge tokens)
childrenReact.ReactNode—
styleReact.CSSProperties—

Code

One import line plus the example code from the usage note.

jsx · import
import { Badge } from "./components/display/Badge.jsx";
jsx · Badge.prompt.md
<Badge>새 기능</Badge>
<Badge tone="success">Active</Badge>
<Badge tone="purple">Beta</Badge>
<Badge variant="solid">Default</Badge>
html · Badge.prompt.md
<span class="badge">새 기능</span>
css · Badge.prompt.md
.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