Ask Natuna

Ask about the design system

Hi, I am Natuna.

Ask me about the design system: components, tokens, statuses, and how to use them.

Natuna can be wrong. The docs are the source of truth.

Skip to content
  • IntroductionPage
  • Ask NatunaAsk about the design systemPage
  • FoundationColor, type, number, effectPage
  • Components overviewPage
  • ThemesLight and dark modePage
  • NamingProperty and page namesPage
  • Privacy statementPage
  • Text-safe stepsFirst AA and AAA step per color rampSection
  • AccessibilityWCAG 2.2 AAA rulesSection
  • Dark modeThemesSection
  • Using it todayFigma file and React codeSection
  • Component statusDesign status and In ReactSection

Arrow keys to move, Enter to open, Esc to close.

Table

Rows and columns for comparing many records at once.

Status
ReadyBuild day 18 of 21
Code
In React
Role
Display

Usage

This demo is live, and the code below it is the same code, imports included. The component lives in src/ui of this repository and is not published to npm yet.

Recent transfers
CustomerDateStatus
Andi P.18 SepSuccessful
Sari W.17 SepProcessing
Budi S.16 SepFailed
Rina K.15 SepPending

Pastes as editable layers. Shadows are not exported.

import { Status, Table, type TableColumn } from "@/ui";

const columns: TableColumn[] = [
  { key: "customer", header: "Customer" },
  { key: "status", header: "Status" },
];
const rows = [{ customer: "Andi P.", status: <Status status="success" size="sm" /> }];

export default function TableDemo() {
  return <Table caption="Recent transfers" type="striped" columns={columns} rows={rows} />;
}

Variants and states

Every specimen is the real component from src/ui, held in one state.

type basicsm, md, lg
basic table, sm
CustomerDateStatus
Andi P.18 SepSuccessful
Sari W.17 SepProcessing
Budi S.16 SepFailed
Rina K.15 SepPending
basic table, md
CustomerDateStatus
Andi P.18 SepSuccessful
Sari W.17 SepProcessing
Budi S.16 SepFailed
Rina K.15 SepPending
basic table, lg
CustomerDateStatus
Andi P.18 SepSuccessful
Sari W.17 SepProcessing
Budi S.16 SepFailed
Rina K.15 SepPending
type stripedsm, md, lg
striped table, sm
CustomerDateStatus
Andi P.18 SepSuccessful
Sari W.17 SepProcessing
Budi S.16 SepFailed
Rina K.15 SepPending
striped table, md
CustomerDateStatus
Andi P.18 SepSuccessful
Sari W.17 SepProcessing
Budi S.16 SepFailed
Rina K.15 SepPending
striped table, lg
CustomerDateStatus
Andi P.18 SepSuccessful
Sari W.17 SepProcessing
Budi S.16 SepFailed
Rina K.15 SepPending
type borderedsm, md, lg
bordered table, sm
CustomerDateStatus
Andi P.18 SepSuccessful
Sari W.17 SepProcessing
Budi S.16 SepFailed
Rina K.15 SepPending
bordered table, md
CustomerDateStatus
Andi P.18 SepSuccessful
Sari W.17 SepProcessing
Budi S.16 SepFailed
Rina K.15 SepPending
bordered table, lg
CustomerDateStatus
Andi P.18 SepSuccessful
Sari W.17 SepProcessing
Budi S.16 SepFailed
Rina K.15 SepPending

Pastes as editable layers. Shadows are not exported.

Props

caption
string · default none
Required. Describes the table for screen readers.
showCaption
boolean · default false
Shows the caption above the table.
columns
{ key, header, align? }[] · default none
Required.
rows
Record<string, ReactNode>[] · default none
Required.
type
"basic" | "striped" | "bordered" · default "basic"
size
"sm" | "md" | "lg" · default "md"
Row height 32, 40, 48.
stroke
boolean · default true
Outer border.
selectedRow
number · default none
Index of the selected row.

Figma to code

Figma properties by their exact names from Naming, and the React prop that carries each one. The table covers the shared properties that bear on this component; the Figma file decides which of them its component exposes. None means there is no prop for it yet.

Table Cell · Type
columns
Header cells come from columns, body cells from rows.
🧰 Type
type
basic, striped, or bordered.
📐 Size
size
sm, md, or lg.
Stroke
stroke
Boolean.

Accessibility

What the code in src/ui does today, and what it leaves to you.

Keyboard

  • Scrolls sideways on its own when narrow; the scroll area is reachable.

Screen readers

  • A native table with a caption and th scope=col, so each cell is read with its column.

What you still need to do

  • Put an action in a row as a real button or link, with a name that says which row it acts on.

When to use

Built for scanning, sorting, and comparing records. Put the deciding column first.

Do and don't

Do

  • Right-align numbers so they line up.
  • Show an empty state and a loading state for the table body.

Don't

  • Add columns because the component supports them.
  • Cut off columns on mobile: let the table scroll inside its container.

4 of 28 other molecules, same role and ready ones first.

See all components

Status reflects the component tracker snapshot of 29 October 2026.