Velocity X Components

Standard Data

Grouped Summary Table

A data table whose rows collapse into named groups, each with its own subtotal row and a grand total footer — the spreadsheet-pivot view buyers expect for cohort, region, or category reporting without a pivot-table library.

Subscription Included with the Velocity Components subscription.
bash
$ velocityx add standard-grouped-summary-table

Built for react. Needs react already installed as a peer dependency. An Astro-only project needs @astrojs/react wired up first — this won't run on its own in plain Astro.

Full docs for Grouped Summary Table →

Needs a licence key — subscribe here, then velocityx loginonce.

react v1.0.1 react
Grouped Summary Table
Revenue by segment
AccountRevenueDeals
Meridian Health128,4003
Solstice Robotics96,2002
Subtotal224,6005
Harbor Logistics54,3005
Blackwood & Sons41,8004
Blue Pine Studio22,1002
Subtotal118,20011
Grand total342,80016

Props

NameTypeRequiredDefaultDescription
columnsarrayNo[]
groupsarrayNo[]
valueKeysarrayNo[]
getRowIdfunctionNo(row, index) => row.id ?? index
initiallyCollapsedarrayNo[]
captionstringNo"Grouped summary table"
classNamestringNo""

No `Props:` JSDoc comment found — types are undocumented in source, only names/defaults are known.

File this creates

The CLI writes this path into your project, relative to its root — nothing else moves.

text
components/velocity/standard-grouped-summary-table/GroupedSummaryTable.jsx

Using the Grouped Summary Table component

Install it with velocityx add standard-grouped-summary-table. The CLI writes the source straight into your project — no runtime dependency, no registry lock-in, and it themes itself from the same primary-*/accent-* scale as the rest of the library.

More from Standard Data.