Data display
Table
Rows of records with a caption; it scrolls sideways on a narrow screen.
| Version | State | Uploaded |
|---|---|---|
| 1.2.0 | Live | 2026-11-18 |
| 1.1.0 | Retired | 2026-10-02 |
Installation
pnpm add @elsikora/keystone-ui-kitUsage
import { Table, TableHead } from "@elsikora/keystone-ui-kit";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
| Version | State | Uploaded |
|---|---|---|
| 1.2.0 | Live | 2026-11-18 |
| 1.1.0 | Retired | 2026-10-02 |
Compact
Small type and tight cells for a narrow place, such as a tool's 22rem column.
| # | Event | Start | End | Budget |
|---|---|---|---|---|
| 1 | reveal | 0 | 412 | 600 |
| 2 | win | 412 | 1180 | 900 |
| 3 | tumble | 1180 | 1730 | – |
Framed
The scrolling region in the kit's frame, as a card; a front never frames a table itself.
| Package | What it holds |
|---|---|
| core | State, event playback and round flow. |
| field | The reels and the effects. |
API reference
Table
| Prop | Type | Default | Description |
|---|---|---|---|
density | "default" | "compact" | "default" | `compact`: small type and tight cells, for a narrow place where the default would scroll sideways. |
framed | boolean | false | Draws the scrolling region in the kit's frame. |
regionLabel | string | "Table" | The scrolling region's name when there is no caption; a caption names it otherwise. |
className | string | - | More classes, added after the kit's. |
TableHead
| Prop | Type | Default | Description |
|---|---|---|---|
scope | "col" | "row" | "col" | What the header cell heads. |
Notes
- Give every table a caption; it names the table for a screen reader.