A beautiful button that displays your GitHub repository's star count with real-time data fetching.
Search for a command to run...
A beautiful button that displays your GitHub repository's star count with real-time data fetching.
Social proof on the landing page. Live stats from our repo.
npx shadcn@latest add https://ui.heygaia.io/r/github-stars-button.jsonimport { GitHubStarsButton } from "@/components/ui/github-stars-button";
export default function Example() {
return <GitHubStarsButton repo="theexperiencecompany/gaia" />;
}<GitHubStarsButton repo="vercel/next.js" />
<GitHubStarsButton repo="facebook/react" />
<GitHubStarsButton repo="microsoft/vscode" /><GitHubStarsButton repo="theexperiencecompany/gaia" showLabel={false} /><GitHubStarsButton repo="theexperiencecompany/gaia" size="sm" />
<GitHubStarsButton repo="theexperiencecompany/gaia" size="default" />
<GitHubStarsButton repo="theexperiencecompany/gaia" size="lg" /><GitHubStarsButton
repo="theexperiencecompany/gaia"
className="hover:scale-105 transition-transform"
/>| Prop | Type | Default | Description |
|---|---|---|---|
| repo | string | - | GitHub repository (owner/repo) |
| showLabel | boolean | true | Whether to show "GitHub" label |
| size | "sm" | "default" | "lg" | "sm" | Size of the button |
| className | string | undefined | Additional CSS classes |