# Upstage Design System — Tabs (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/tabs/ · machine doc: /agent/components/product/tabs.md
## Required references (read these)
- /components/display/Tabs.jsx — implementation · sha256 c8f512c369e0…
- /components/_types.d.ts — api · key TabsProps
- /components/display/Tabs.prompt.md — usage-note · sha256 6332bb035357…
- /kit/rules/a11y-contract.json — a11y · key Tabs
## API (components/_types.d.ts TabsProps)
- tabs?: Array<string | TabItem> (default [])
- value?: string
- defaultValue?: string
- onChange?: (value: string) => void
- ariaLabel?: string (default 탭) — tablist의 접근성 이름.
- orientation?: "horizontal" | "vertical" (default horizontal)
- style?: React.CSSProperties
## Accessibility contract
- keys: ArrowLeft, ArrowRight, Home, End
- aria: role=tablist, role=tab, aria-selected, aria-controls, aria-orientation
- notes: roving tabindex
## 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 TabsProps in components/_types.d.ts.
| prop | type | default | doc |
|---|---|---|---|
tabs | Array<string | TabItem> | [] | |
value | string | — | |
defaultValue | string | — | |
onChange | (value: string) => void | — | |
ariaLabel | string | 탭 | tablist의 접근성 이름. |
orientation | "horizontal" | "vertical" | horizontal | |
style | React.CSSProperties | — |
TabItem
| field | type | default | doc |
|---|---|---|---|
value required | string | — | |
label | React.ReactNode | — | |
disabled | boolean | — | |
tabId | string | — | 이 탭의 id — 패널의 aria-labelledby가 가리킨다. |
panelId | string | — | 이 탭이 제어하는 패널의 id (aria-controls). |
Code
One import line plus the example code from the usage note.
import { Tabs } from "./components/display/Tabs.jsx";<Tabs tabs={["Overview", "Usage", "Limits"]} onChange={setTab} />Token bindings
Tokens the implementation references with var(). Names assembled at runtime (e.g. --state-${tone}-fg) are not listed.
--disabled-foreground, --font-sans, --shadow-sm, --tab-active-bg, --tab-active-fg, --tab-inactive-fg, --tab-list-bg, --transition-colors
Source
components/display/Tabs.jsximplementation · sha256 c8f512c369e0…components/_types.d.tsapi · TabsPropscomponents/display/Tabs.prompt.mdusage-note · sha256 6332bb035357…kit/rules/a11y-contract.jsona11y · Tabs