titlestringRequired- The card's name, shown in its header.
itemsShiftItem[]Required- The sources: each has an id, a label, a value, an optional delta (percent change) and an icon.
periodstring- What the total covers, shown beside it, like "Last 30 days".
unitstring- What is being counted, used in the headline and empty state.
- Default
'visitors' deltanumber- The total's change, shown beside the headline.
limitnumber- How many sources to show before the rest fold into one row.
- Default
6 viewShiftView- The view to show: list, bars or change. Pair with onViewChange.
defaultViewShiftView- The view to start on when you don't control it.
- Default
'list' format(n: number) => string- Turns a number into the text shown for it.
- Default
count onViewChange(view: ShiftView) => void- Called with the view a person switches to.