Components/Components

GitHub Calendar

Fully interactive GitHub contribution calendar with year-switching and tooltips.

githubcalendarcontributions

Preview

Installation

npx shadcn@latest add https://grootstudio.vercel.app/r/github-calendar.json

Examples

Blue Theme

Circular Cells

Minimal Layout

Custom Range (Sunday Start)

Usage

Props

PropTypeDefaultRequiredDescription
usernamestringGitHub username to fetch data for
dataContributionDataOptional manual contribution data object
startDatestringStart date in YYYY-MM-DD format
endDatestringEnd date in YYYY-MM-DD format
startsOnSundaybooleantrueWhether to start weeks on Sunday or Monday
cellSizenumber12Size of each contribution cell in pixels
cellGapnumber3Gap between cells in pixels
cellShape'rounded' | 'circle'roundedVisual shape of the contribution cells
themestring | ThemeColorsgithubColor theme (github, blue, sunset, purple, gray) or custom object
showMonthLabelsbooleantrueDisplay month names at the top
showStatsbooleantrueShow contribution count and username stats
showLegendbooleantrueDisplay the Less/More color legend

Dependencies

lucide-react