One question answered by one or two hero figures, with a trace at the right, a part bar and two lines of facts; every hero and fact opens its records.
Click a figure: what it would open shows here.
$ npx shadcn@latest add @highcommand/figure-groupCopies the source into your project and pulls in what it needs (4 other items). First time? Add the registry to components.json.
A group of key figures: a label line, one or more big hero figures, an optional bar and up to two lines of facts; each hero opens its records.
idrequiredstring—`data-group`: the group's key.
labelrequiredstring—The group's label line (its heading).
heroesrequiredreadonly Hero[]—The group's big figures, one column each.
periodReactNode—Printed after the label ("· last 30 days").
traceReactNode—Beside the heroes, at the right: a line over its normal band, or the words "no history yet".
barReactNode—Under the heroes: a ratio bar (`PartBar`).
factsreadonly (readonly ReactNode[])[]—Up to two lines, each a cell per hero column (a cell may be empty).
testidstring—`data-testid` of the group.
classNamestring—Extra class on the group.
<Fact />4 propsA fact: its shape (if it has a status), its figure (the mono, its own records) and its words; one line, the rest in its tooltip.childrenrequiredReactNode—The fact's figure and words.
statusFigureStatus | null—The status shape before the fact (none when empty).
statusLabelstring—The shape's accessible name, where it means something other than the default.
titlestring—Tooltip with the fact in full.
Install this free piece now; the Pro pieces drop in on top of it, in the same app. Pro is $79 once.