Zostel
Layout Table

Table

Rows and columns, scrolling sideways on a phone.

Preview

Six places, from /brand/places — each with its colour and three verbs.
PlaceRegionLandscapeIconVerbs
LehLadakhValleysShanti StupaCLIMB · RIDE · GAZE
RishikeshUttarakhandWatersLakshman JhulaRAFT · STRETCH · BREATHE
MunnarKeralaFieldsTea HillsWALK · SIP · BREATHE
JaipurRajasthanFlowersHawa MahalSEE · SHOP · EAT
JaisalmerRajasthanSunny DaysGolden FortEXPLORE · RIDE · GAZE
PokharaNepalWatersFishtail PeakPADDLE · FLY · GAZE

Usage

tsx
import { Table, TableHeader, TableBody, TableRow, TableHead, TableCell, TableCaption } from "zostel-ui";

<Table>
  <TableCaption>Places</TableCaption>
  <TableHeader>
    <TableRow><TableHead>Place</TableHead><TableHead>Region</TableHead></TableRow>
  </TableHeader>
  <TableBody>
    <TableRow><TableCell>Leh</TableCell><TableCell>Ladakh</TableCell></TableRow>
  </TableBody>
</Table>

Parts

Table
Type: table
Default: —

In a horizontally scrolling wrapper.

TableHeader / TableBody / TableFooter
Type: thead / tbody / tfoot
Default: —

TableRow
Type: tr
Default: —

Highlights on hover.

TableHead / TableCell
Type: th / td
Default: —

TableCaption
Type: caption
Default: —

Says what the table is.