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

Components / Product

Tabs — Implementation

Switch views on one screen

Context
Product
Content
source-derived
Availability
implemented
Verification
static-only 2026-11-18
Source revision
Lift 1.2.3 c8f512c369e0…
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 TabsProps in components/_types.d.ts.

proptypedefaultdoc
tabsArray<string | TabItem>[]
valuestring—
defaultValuestring—
onChange(value: string) => void—
ariaLabelstring탭tablist의 접근성 이름.
orientation"horizontal" | "vertical"horizontal
styleReact.CSSProperties—

TabItem

fieldtypedefaultdoc
value requiredstring—
labelReact.ReactNode—
disabledboolean—
tabIdstring—이 탭의 id — 패널의 aria-labelledby가 가리킨다.
panelIdstring—이 탭이 제어하는 패널의 id (aria-controls).

Code

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

jsx · import
import { Tabs } from "./components/display/Tabs.jsx";
jsx · Tabs.prompt.md
<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