Description
@pearpages/heatmap is a React component that draws a GitHub-style contribution heatmap, the grid of squares that shows activity across a period. It is built for React 19 and ships with four colour themes, light and dark appearance, and two layouts. The contribution calendar shows a year with one column per week and one row per weekday, the way GitHub lays out a profile, and the grid scrolls sideways when the period does not fit. The month grid transposes the data, with one row per week and one column per weekday, which suits short periods and looks like a date picker. The component ships no translations. It takes day and month names from the locale you pass through Intl, and the few strings Intl cannot provide are passed as props. The package also includes helpers for choosing a period, generating mock data and grouping data by week. It installs from npm and is documented on a live demo page, with the source on GitHub. The page credits its author, Pere Pages.…
Highlights
- GitHub-style contribution heatmap for React 19
- Contribution calendar and month grid layouts
- Four colour themes with light and dark appearance
- Localized through Intl with no bundled translations
- Helpers for periods, mock data and week grouping
Ratings & Reviews
No ratings yet
Be the first to rate @pearpages/heatmap.
People also visit
@pearpages/heatmap FAQ
What is @pearpages/heatmap?
A React component for GitHub-style contribution heatmaps, installed from npm.
How do I install it?
Run npm install @pearpages/heatmap, then import the component and its styles.css file.
Which React version does it need?
The page says it is built for React 19.
What layouts does it have?
A contribution calendar that shows a year by week and weekday, and a month grid for shorter periods.
Does it support themes and dark mode?
Yes. It has light and dark appearance and four colour themes, named GitHub, Ocean, Sunset and Purple.
Does it come with translations?
No. It derives day and month names from the locale you give it through Intl, and takes the strings Intl cannot derive as props.
Where can I see it?
The site has a live demo and documentation, and the project is on GitHub.
What are the best @pearpages/heatmap alternatives?
Popular alternatives to @pearpages/heatmap include react-calendar-heatmap, vue3-calendar-heatmap and react-charty. See all @pearpages/heatmap alternatives



















