# Upstage Design System — Table (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/table/ · machine doc: /agent/components/product/table.md
## Required references (read these)
- /components/display/Table.jsx — implementation · sha256 a7cb7a980d46…
- /components/_types.d.ts — api · key TableProps
- /components/display/Table.prompt.md — usage-note · sha256 9c87c2ebe5ad…
- /kit/rules/a11y-contract.json — a11y · key Table
## API (components/_types.d.ts TableProps)
- columns?: Array<{ key: string; label: string; width?: number | string; align?: "left" | "center" | "right" }> (default [])
- rows?: Array<Record<string, React.ReactNode>> (default [])
- caption?: string — 스크린리더용 표 설명. 시각적으로는 숨는다.
- rowHeaderKey?: string — 이 컬럼을 각 행의 행 헤더(th scope="row")로 렌더한다.
- style?: React.CSSProperties
## Accessibility contract
- keys: -
- aria: th scope=col, th scope=row, caption
## 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 TableProps in components/_types.d.ts.
| prop | type | default | doc |
|---|---|---|---|
columns | Array<{ key: string; label: string; width?: number | string; align?: "left" | "center" | "right" }> | [] | |
rows | Array<Record<string, React.ReactNode>> | [] | |
caption | string | — | 스크린리더용 표 설명. 시각적으로는 숨는다. |
rowHeaderKey | string | — | 이 컬럼을 각 행의 행 헤더(th scope="row")로 렌더한다. |
style | React.CSSProperties | — |
Code
One import line plus the example code from the usage note.
import { Table } from "./components/display/Table.jsx";<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
components/display/Table.jsximplementation · sha256 a7cb7a980d46…components/_types.d.tsapi · TablePropscomponents/display/Table.prompt.mdusage-note · sha256 9c87c2ebe5ad…kit/rules/a11y-contract.jsona11y · Table