@objectifthunes/whiteboard
PAGE SECTIONS

StatRow

The recap row above a list: three or four numbers that say what the page is about before you read a row.


PREVIEW
Outstanding
€113,891

23 open invoices

Overdue
12 late
€59,808

Oldest is 38 days past due

Paid
this quarter
€59,064

12 drafts not yet sent

Two columns
Seats
8 of 10
Storage
8.6 GB

Tile action fired: none

SOURCE
import { StatRow } from '@objectifthunes/whiteboard'

<StatRow
  cols={3}
  items={[
    { title: 'Outstanding', value: money(totals.open), sub: '23 open invoices',
      action: <ButtonLink href="#" variant="secondary" onClick={showDue}>Show due</ButtonLink> },
    { title: 'Overdue', value: money(totals.late), pill: '12 late', pillTone: 'danger',
      sub: 'Oldest is 38 days past due' },
    { title: 'Paid', value: money(totals.paid), pill: 'this quarter', pillTone: 'success' },
  ]}
/>
NOTES

Driven entirely by data, so the same row serves invoices, users or builds.

Give the tiles an action that narrows the list below rather than navigating away. A recap number you cannot act on is decoration.

Values are nodes, so currency, rounding and locale stay yours.