Table

A manifest in mono with hairline rules. is-numeric gives a cell amber tabular figures.

VolumeStateBlocks
/coremounted18 442
/archivemounted4 011
/captureread-only92 780

Installation

npx shadcn@latest add @afterglow/table

Composition

Component structure.

Table
├── TableHeader
│   └── TableHead
├── TableBody
│   ├── TableRow
│   └── TableCell
├── TableFooter
└── TableCaption

Opt-in, and only once the container has a height to scroll inside. On by default it would stick to the page instead, so the header row would detach as the table left the viewport and float over whatever came next.

VolumeStateBlocks
/coremounted18 442
/archivemounted4 011
/captureread-only92 780
/scratchmounted612
/spooloffline0

API Reference

Table

The table renders inside a scrolling container. containerClassName styles that container, since the height a table scrolls within belongs to it rather than to the table.

PropTypeDefault
stickyHeaderbooleanfalse
containerClassNamestring-