{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "github-stars", "title": "GitHub Stars", "author": "shakil-ahmed-billal ", "description": "Display GitHub repo star count with formatted numbers and full-count tooltip.", "registryDependencies": [ "button", "tooltip" ], "files": [ { "path": "src/registry/components/github-stars/github-stars.tsx", "content": "import { Button } from \"@/components/ui/button\"\r\nimport {\r\n Tooltip,\r\n TooltipContent,\r\n TooltipTrigger,\r\n} from \"@/components/ui/tooltip\"\r\n\r\nexport type GitHubStarsProps = {\r\n /** GitHub repository in `owner/repo` format. */\r\n repo: string\r\n /** Number of stars to display. */\r\n stargazersCount: number\r\n}\r\n\r\nexport function GitHubStars({ repo, stargazersCount }: GitHubStarsProps) {\r\n return (\r\n \r\n \r\n \r\n \r\n\r\n \r\n {new Intl.NumberFormat(\"en-US\").format(stargazersCount)} stars\r\n \r\n \r\n )\r\n}\r\n", "type": "registry:component" } ], "type": "registry:component" }