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

Components / Product

Button — Implementation

Primary, secondary and destructive action button for Product screens. One primary per view (B-5).

Context
Product
Content
draft
Availability
implemented
Verification
static-only 2026-09-23 · lift-1.0.1
Source revision
Lift 1.2.3 8d5d9377c2b4…
Source language
KO · EN
Updated
2026-09-23

Supported environment

The Lift 1.2.3 reference implementation is a React 18 function component. Styles are inline and every colour references a Product semantic token (hsl(var(--*))), so styles.product.css (or primitives.css + tokens.product.css) must be loaded. The prop contract is ButtonProps in components/_types.d.ts. The mapping to the npm package (@upstageai/ui) could not be verified in this repository.

Install and wire up

  1. Copy references/starter-kit/components/actions/Button.jsx and components/_types.d.ts from the Lift skill into the project and import them by relative path.
  2. In HTML demos _ds_bundle.js exposes the component on window.UpstageDesignSystem_bdeb42. This site's preview and the Console kit render the real source the same way.
  3. For Tailwind 3 + @upstageai/ui 1.2.x or Tailwind 4 + 2.1.0+, follow the Lift skill's scripts/detect_compat.py and references/compatibility.md. This site did not verify that path.

API

The prop table is read from ButtonProps in components/_types.d.ts and the value lists and sizes from Button.jsx at build time. ButtonProps accepts every native button attribute, including onClick. loading and asChild are not part of this implementation.

proptypedefaultdoc
variant"primary" | "secondary" | "destructive" | "outline" | "ghost" | "accent"primaryVisual variant. Prefer outline/ghost for secondary actions; secondary is a deprecated outline alias.
size"sm" | "md" | "lg"mdControl height: sm 32 / md 40 / lg 48
disabledbooleanfalse
childrenReact.ReactNode—
styleReact.CSSProperties—

Any other prop passes through as ...rest to the button element. Attributes the implementation always sets: aria-disabled, data-ds-focus, disabled, type.

Code

jsx · Lift 1.2.3
import { Button } from "./components/actions/Button.jsx";

<Button variant="primary" size="md" onClick={createKey}>Create API key</Button>
<Button variant="outline">Cancel</Button>

The interactive preview is on the Overview tab, same source and runtime. Overview

Token bindings

--accent, --accent-active, --accent-border, --accent-foreground, --accent-hover, --border, --btn-ghost-active, --btn-ghost-hover, --btn-outline-active, --btn-outline-border-hover, --btn-outline-hover, --destructive, --destructive-active, --destructive-foreground, --destructive-hover, --disabled, --disabled-border, --disabled-foreground, --font-sans, --foreground, --primary, --primary-active, --primary-foreground, --primary-hover, --transition-colors

variantUseBase backgroundtokens
primaryThe view’s main action. One per viewhsl(var(--primary))--primary, --primary-active, --primary-foreground, --primary-hover
secondaryCompatibility alias for outline. Use outline or ghost for new secondary actions.transparent--border, --btn-outline-active, --btn-outline-border-hover, --btn-outline-hover, --foreground
destructiveDelete and other irreversible actionshsl(var(--destructive))--destructive, --destructive-active, --destructive-foreground, --destructive-hover
outlineSecondary action, e.g. Cancel beside a primarytransparent--border, --btn-outline-active, --btn-outline-border-hover, --btn-outline-hover, --foreground
ghostLowest emphasis, e.g. toolbar or table actionstransparent--btn-ghost-active, --btn-ghost-hover, --foreground
accentbrand-50 tint for selected or active-state actionshsl(var(--accent))--accent, --accent-active, --accent-border, --accent-foreground, --accent-hover

size

sizemin-heightpaddingfont-sizeradius
sm32px0 12px13px6px
md40px0 16px14px8px
lg48px0 20px16px8px

Values parsed at build time from components/actions/Button.jsx (Lift 1.2.3). disabled uses --disabled, --disabled-border, --disabled-foreground.

Constraints

  • type="button" is the default. Pass type="submit" explicitly for form submission.
  • disabled sets both DOM disabled and aria-disabled.
  • hover and active are internal component state, not CSS :hover. Handlers passed from outside, such as onMouseEnter or onKeyDown, are still called after the internal handling (Lift 1.0.1).
  • aria-*, data-* and onClick pass through as rest props.

Source

File sha256 values are computed at build time and match /agent-manifest.json.