RepoCard

Displays a repository summary with name, description, language, stars, and forks.

Import

import { RepoCard } from "@gumtree/ui/forge/RepoCard";

Props

PropTypeDefaultDescription
name*string-Repository name
owner*string-Repository owner
descriptionstring-Short description
languagestring-Primary language
starsnumber-Star count
forksnumber-Fork count
isPrivatebooleanfalseShow a Private badge
hrefstring-Link URL. Defaults to /{owner}/{name}

Examples

Public Repository

A public repo card with language, stars, and forks.

A lightweight git forge built with Fresh and Deno

TypeScript428
<RepoCard
  name="gumtree"
  owner="forge"
  description="A lightweight git forge built with Fresh and Deno"
  language="TypeScript"
  stars={42}
  forks={8}
/>

Private Repository

A private repo shows a Private badge.

Internal tooling and scripts

<RepoCard
  name="internal-tools"
  owner="forge"
  description="Internal tooling and scripts"
  isPrivate
/>

With Stats

Repo card showing all metadata fields.

Design system and UI components

TypeScript123
<RepoCard
  name="gumtree-ui"
  owner="forge"
  description="Design system and UI components"
  language="TypeScript"
  stars={12}
  forks={3}
  isPrivate
/>