Github Contribution
Github Contribution: GitHub-style contribution heatmap with year selector, total count, and Less/More legend. Pulls real data when you pass a username. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.
Install Github Contribution
npx motion-ui-skill add github-contributionComponents install as source into your project. The interactive page also includes preview, code, documentation and install tabs.
Dependencies
clsxlucide-reactreacttailwind-merge
Source files
Github Contribution
GitHub-style contribution heatmap with year selector, total count, and Less/More legend. Pulls real data when you pass a username.
Install
npx motion-ui-skill add github-contribution
Dependencies
clsxlucide-reactreacttailwind-merge
Usage
"use client";
import { GithubContributionCard } from "@/components/socials/github-contribution";
export function GithubContributionCardDemo() {
return (
<div className="flex items-center justify-center p-6">
<GithubContributionCard />
</div>
);
}
API Reference
GithubContributionCard
| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
className |
string |
— | No | Additional CSS classes |