Skip to content
synccn

Heatmap

Contribution-style calendar of daily counts.

0 commits in the last 26 weeksLessMore

Installation

$ pnpm dlx shadcn@latest add @synccn/heatmap

First 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 }

  • values
    Record<string, number>

    Default {}

    Counts keyed by YYYY-MM-DD.

  • weeks
    number

    Default 26

    Weeks to show, ending today.

  • label
    string

    Default "contributions"

    Unit used in tooltips, e.g. commits.

  • className
    string

    Extra classes for the root element.

Dependencies

Read from the component's imports when the site builds. The CLI installs all of these for you.

Helpers

npm packages

Accessibility

From the source

Read from this component's code when the site builds, so it can't drift.

  • ARIA attributes: aria-label