0 commits in the last 26 weeksLessMore
Installation
$ pnpm dlx shadcn@latest add @synccn/heatmapFirst time in this project? Connect synccn with one command.
Usage
import { Heatmap } from "@/components/ui/heatmap";<Heatmap values={{ "2026-11-01": 4 }} />API reference
Generated from the component's TypeScript types, so it always matches the code.
Heatmap
Contribution-style calendar heatmap for the last `weeks` weeks. values: { "YYYY-MM-DD": number }
PropTypeDescription
- values
Record<string, number>Default
{}Counts keyed by YYYY-MM-DD.
- weeks
numberDefault
26Weeks to show, ending today.
- label
stringDefault
"contributions"Unit used in tooltips, e.g. commits.
- className
stringExtra classes for the root element.
Dependencies
Read from the component's imports when the site builds. The CLI installs all of these for you.
npm packages
- clsx for cn()
- tailwind-merge for cn()
Accessibility
From the source
Read from this component's code when the site builds, so it can't drift.
- ARIA attributes: aria-label
More data
Data TableSorting, search, column visibility, selection and paging.Bar ChartResponsive SVG bars with tooltips and an entrance.Area ChartSmooth area with a crosshair tooltip.SparklineTiny trend line coloured by direction.KanbanDrag cards between columns.Sortable ListDrag to reorder, with Alt+arrow keyboard support.