Skip to content

Data display

Table

Rows of records with a caption; it scrolls sideways on a narrow screen.

Releases of the sample game
VersionStateUploaded
1.2.0Live2026-11-18
1.1.0Retired2026-10-02

Installation

Terminal
pnpm add @elsikora/keystone-ui-kit

Usage

Import
import { Table, TableHead } from "@elsikora/keystone-ui-kit";
docs/table/default.example.tsx
import { Table, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow } from "@elsikora/keystone-ui-kit";
export default function TableDefaultExample() {  return (    <Table>      <TableCaption>Releases of the sample game</TableCaption>      <TableHeader>        <TableRow>          <TableHead>Version</TableHead>          <TableHead>State</TableHead>          <TableHead>Uploaded</TableHead>        </TableRow>      </TableHeader>      <TableBody>        <TableRow>          <TableCell>1.2.0</TableCell>          <TableCell>Live</TableCell>          <TableCell>2026-11-18</TableCell>        </TableRow>        <TableRow>          <TableCell>1.1.0</TableCell>          <TableCell>Retired</TableCell>          <TableCell>2026-10-02</TableCell>        </TableRow>      </TableBody>    </Table>  );}

Examples

Default

Releases of the sample game
VersionStateUploaded
1.2.0Live2026-11-18
1.1.0Retired2026-10-02

Compact

Small type and tight cells for a narrow place, such as a tool's 22rem column.

Each event's start and end, in milliseconds; – where no budget is declared.
#EventStartEndBudget
1reveal0412600
2win4121180900
3tumble11801730–

Framed

The scrolling region in the kit's frame, as a card; a front never frames a table itself.

Packages of the engine
PackageWhat it holds
coreState, event playback and round flow.
fieldThe reels and the effects.

API reference

Table

PropTypeDefaultDescription
density"default" | "compact""default"`compact`: small type and tight cells, for a narrow place where the default would scroll sideways.
framedbooleanfalseDraws the scrolling region in the kit's frame.
regionLabelstring"Table"The scrolling region's name when there is no caption; a caption names it otherwise.
classNamestring-More classes, added after the kit's.

TableHead

PropTypeDefaultDescription
scope"col" | "row""col"What the header cell heads.

Notes

  • Give every table a caption; it names the table for a screen reader.