---
title: "Github Repo | Free React & Tailwind Craft Component | Motion UI"
canonical: "https://blacknest.dev/motion/c/craft/github-repo"
github_source: "https://github.com/Rkj0123/motion-ui-skill/blob/main/components/socials/github-repo-card.tsx"
install_command: "npx motion-ui-skill add github-repo"
dependencies: ["clsx","lucide-react","react","tailwind-merge"]
category: "craft"
subcategory: "socials"
---

# Github Repo

> GitHub repo card with owner, description, language dot, star/fork counts, and a toggleable Star button. Open source landing pages, simplified.

## Install

```bash
npx motion-ui-skill add github-repo
```

## Dependencies

- `clsx`
- `lucide-react`
- `react`
- `tailwind-merge`

## Usage

```tsx
"use client";

import { GitHubRepoCard } from "@/components/socials/github-repo-card";

export function GitHubRepoCardDemo() {
  return (
    <div className="flex items-center justify-center p-6">
      <GitHubRepoCard />
    </div>
  );
}
```

## API Reference

### GitHubRepoCard

| Prop | Type | Default | Required | Description |
| :--- | :--- | :--- | :--- | :--- |
| `className` | `string` | — | No | Additional CSS classes |

## Source Files

- [components/socials/github-repo-card.tsx](https://github.com/Rkj0123/motion-ui-skill/blob/main/components/socials/github-repo-card.tsx)
- [icons/brands/github.tsx](https://github.com/Rkj0123/motion-ui-skill/blob/main/icons/brands/github.tsx)
- [lib/cn.ts](https://github.com/Rkj0123/motion-ui-skill/blob/main/lib/cn.ts)
- [lib/utils.ts](https://github.com/Rkj0123/motion-ui-skill/blob/main/lib/utils.ts)
