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

Components / Product

Table — Implementation

Row and column data

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

proptypedefaultdoc
columnsArray<{ key: string; label: string; width?: number | string; align?: "left" | "center" | "right" }>[]
rowsArray<Record<string, React.ReactNode>>[]
captionstring—스크린리더용 표 설명. 시각적으로는 숨는다.
rowHeaderKeystring—이 컬럼을 각 행의 행 헤더(th scope="row")로 렌더한다.
styleReact.CSSProperties—

Code

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

jsx · import
import { Table } from "./components/display/Table.jsx";
jsx · Table.prompt.md
<Table
  columns={[{key:"name",label:"Name"},{key:"status",label:"Status"}]}
  rows={[{name:"prod-key", status:<Badge tone="success">Active</Badge>}]}
/>

Token bindings

Tokens the implementation references with var(). Names assembled at runtime (e.g. --state-${tone}-fg) are not listed.

--border-subtle, --card, --duration-fast, --font-sans, --foreground, --muted-foreground, --table-header, --table-header-border, --table-row-border, --table-row-hover

Source