Contribution Graph

GitHub-like heatmap for activity visualization.

Open in v0~1.8 kB

Last updated: March 7, 2026

Contribution Graph for 2025
JanFebMarAprMayJunJulAugSepOctNovDec
Sun
Tue
Thu
Sat
Less
More

Installation

npx smoothui-cli add contribution-graph

Features

  • Heatmap cells with tooltips
  • Animations on load and hover
  • Custom color scales
  • Responsive grid

Accessibility

ARIA Attributes

AttributeElementPurpose
caption.sr-onlyTableProvides a screen-reader-only caption: "Contribution Graph for year"
titleTable cellsNative tooltip with formatted date and contribution count for each day

Screen Reader

  • The component renders as a semantic table with thead, tbody, caption, and td elements.
  • Month headers are rendered as table column headers.
  • Day labels (Sun, Mon, etc.) are displayed in row header cells.
  • Each day cell includes a title attribute with the full date and contribution count.

Reduced Motion

This component respects the prefers-reduced-motion media query via useReducedMotion from Motion. When reduced motion is preferred, the tooltip scale/opacity animation is disabled and appears instantly.

Props