A customizable contribution heatmap with 22 themes, tooltip support, dark mode, and a live legend. Fetches data from GitHub's public contributions API with 24h caching.
import { GitHubContributions } from "@/components/github-contributions";
export default function GitHubContributionsDemo() {
return <GitHubContributions />;
}$ npx shadcn@latest add https://akshitr.com/r/github-contributions.json
import { GitHubContributions } from "@/components/github-contributions";<GitHubContributions theme="aurora" username="your-username" />| Prop | Type | Default | Description |
|---|---|---|---|
| theme? | string | "github" | The theme of the graph. |
| username | string | "akshit3010" | The username of the user. |
| showCount? | boolean | false | Whether to show the count of contributions. |
| blockMargin? | number | 3 | The margin between the blocks. |
| blockSize? | number | 13 | The size of the blocks. |
| hideMonthLabels? | boolean | false | Whether to hide the month labels. |
| hideFooter? | boolean | false | Whether to hide the footer. |