sigilUI

Commit Grid

Show daily activity as a calendar heatmap.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { CommitGrid } from "@sigil-ui/components";

Usage

<CommitGrid
  data={[
    { date: "2026-04-23", count: 4 },
    { date: "2026-04-24", count: 8 },
  ]}
  weeks={12}
  responsive
/>

Props

PropTypeDefaultDescription
dataCommitDay[]——
weeksnumber52Number of weeks to show.
endDatestring—Last date to render, formatted as YYYY-MM-DD. Defaults to the latest date in data.
cellSizenumber12Size of each cell in px.
responsivebooleanfalseFill the available width with equal square cells. Overrides cellSize.
gapnumber2Gap between cells in px.
colorstringvar(--s-success)Color for filled cells.
showDayLabelsbooleantrueDay labels on left side.
showMonthLabelsbooleantrueMonth labels on top.

Token integration

CSS VariablePurpose
--s-successSuccess
--s-text-mutedText muted
--s-font-monoFont mono