Introducing shieldcn — README badges, shadcn style.

Check it out

GitHub Button Group

Segmented button group displaying multiple GitHub repo metrics with per-segment links.

class-variance-authority
Loading...

Installation

$ shadcn add @jalco/github-button-group

Usage

import { GitHubButtonGroup } from "@/components/github-button-group"
<GitHubButtonGroup owner="shadcn-ui" repo="ui" />

Examples

Metric visibility

Toggle specific metrics using boolean props. Icons and tooltips update automatically.

Stars and forks only

API Reference

GitHubButtonGroup

PropType

Notes

  • Each metric segment links to the corresponding GitHub page (stargazers, forks, watchers, or issues).