bloxa

Heatmap

FREE

Calendar heatmap (contribution graph) with localized month and day names.

Installation

Terminal
npx @bloxa/cli add heatmap
# or: npx shadcn@latest add @bloxa/heatmap

Packages installed automatically: motion

Examples

Contribution calendar

NovJanFebMarAprMayJunJulAugSepOctNovMonWedFri
LessMore

API reference

Every component also accepts the props of the element it renders.

Heatmap

PropTypeDefaultDescription
data{ date, value }[]—Daily values.
from / toDate—Range; defaults to the past year.
weekStart0 | 1—Week start; by locale.
levels / color / cellnumber / string / number4 / accent / 12Color steps, color, cell size.
formatTooltip(value, date) => string—Tooltip text.