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
Paid
this quarter12 drafts not yet sent
Seats
Storage
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.