Adds its 3 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
Usage
Import it from your copy of the source. The example behind the preview comes with the source. It is built from ActivityHeatmap and activityLevels.
The 41-line example behind the preview opens here, ready to copy.
626 Pro parts, blocks and page templates, all with source
$149 once, with lifetime updates. No renewal
A full refund within 14 days if it is not for you
Checking your licence…
API reference
ActivityHeatmap
component
PropTypeDefaultDescription
label *string—
data *readonly ActivityDay[]—
breakdownreadonly ActivityShare[]—Where the activity went, largest first or not; the footer names the top three and opens the full ranking over the grid.
breakdownLabelstring"Where it went"
weekStart0 | 110 is Sunday, 1 is Monday.
unitstring""
formatValue((value: number) => string)numberText
selectedstring | null—Controlled selected date (YYYY-MM-DD); omit for uncontrolled.
No props of its own; it accepts the native props of its root element.
Accessibility
It exposes grid, row, rowheader, gridcell, region, group and status semantics, with aria-label, aria-busy, aria-rowcount, aria-colcount, aria-hidden and aria-selected kept in step with state. Changes that matter are announced through a live region.
KeyBehaviour
→Moves to the next item or value.
←Moves to the previous item or value.
↓Moves to the next item or value.
↑Moves to the previous item or value.
PageDownMoves by a larger step, or to the next page.
PageUpMoves by a larger step, or to the previous page.
HomeJumps to the first item or the minimum.
EndJumps to the last item or the maximum.
EnterActivates the focused control.
SpaceActivates the focused control.
EscapeCloses or cancels, then returns focus to where it came from.
Motion
Transitions use the shared duration and easing tokens. Under prefers-reduced-motion those tokens collapse to instant and travel distances go to zero, so state changes still happen without movement.