StatusGrid#

A dense grid of status cells, for seeing many things at once.

Import#

TSX
import { StatusGrid } from '@sigx/terminal';

Usage#

TSX
<StatusGrid
    cells={partitions.value.map((p) => ({ label: p.id, tone: p.healthy ? 'success' : 'danger' }))}
    perRow={16}
    legend="● healthy  ● degraded"
/>

Use it when the count is high enough that one row per item would not fit — partitions, shards, replicas, checks. When you need the numbers rather than the shape, reach for DataTable instead.

Props#

PropTypeNotes
cellsStatusCell[]required
perRownumbercells per row
labelWidthnumberlabel column width when labels are shown
showLabelsbooleanlabel each cell
legendstringa line explaining the tones
emptyTextstringshown when cells is empty

See also#

  • DataTable — when you need the figures, not the shape.