GitHub Calendar
A fully customizable GitHub-style contributions heatmap for React.
Hovering a cell shows a tooltip with the contribution count and date when showTooltip is enabled. Clicking a cell fires onCellClick with the underlying day data.
Options you can pass to customize this component.
username*stringGitHub username to fetch and display contributions for.
colorScheme"green""blue""purple""orange""pink""dracula""halloween"Preset theme palette for the contribution levels.
colors[string, string, string, string, string]Custom 5-stop color array override, ordered [empty, level1, level2, level3, level4].
cellSizenumberWidth and height of each grid cell in pixels.
cellGapnumberSpacing between grid cells in pixels.
cellShape"square""circle""rounded"Shape styling for each contribution cell.
showTooltipbooleanToggle displaying the hover information tooltip.
showMonthLabelsbooleanToggle showing month names above columns.
showDayLabelsbooleanToggle showing day of week labels on the left (Mon, Wed, Fri).
weekStart"sun""mon"Determines which day of the week to start the columns on.
animatebooleanEnable staggered mounting scale animation for cells.
timeRange"3-months""6-months""1-year"Adjusts the historical date limit shown in the calendar.
onCellClick(day: ContributionDay) => voidCallback fired when a contribution cell is clicked.
classNamestringAdditional classes merged onto the outer container.
npx shadcn add amitgajare2/ariseui/github-calendar1
Loading activity…
@amitgajare2