Command Palette

Search for a command to run...

GitHub/GitHub Profile Card

GitHub Profile Card

A comprehensive profile card displaying GitHub user information including avatar, bio, location, company, and follower stats.

Open in v0Open in
shadcn's avatar
shadcn@shadcn

Building @vercel. Creator of shadcn/ui.

@vercelNew Yorkshadcn.com@shadcn
45repos12.5Kfollowers89following

Overview

A comprehensive profile card that fetches and displays GitHub user information including avatar, name, bio, location, company, website, Twitter handle, and follower statistics.

Installation

bunx shadcn@latest add @elements/github-profile-card

Usage

import { GitHubProfileCard } from "@/components/elements/github/github-profile-card";

export function TeamMember() {
  return <GitHubProfileCard username="shadcn" />;
}

Props

PropTypeDefaultDescription
usernamestring-GitHub username
showStatsbooleantrueShow repos, followers, following counts
staticDataProfileData-Static data object (bypasses API)
classNamestring-Additional CSS classes

Static Data Shape

{
  login: string;
  name: string | null;
  avatar_url: string;
  bio: string | null;
  public_repos: number;
  followers: number;
  following: number;
  company: string | null;
  location: string | null;
  blog: string | null;
  twitter_username: string | null;
}

Variants

With Stats (Default)

<GitHubProfileCard username="shadcn" />

Without Stats

<GitHubProfileCard username="shadcn" showStats={false} />

Environment Variables

For higher API rate limits:

GITHUB_TOKEN=your_github_token

Features

  • Fetches real-time profile data from GitHub API
  • Displays avatar, name, username, and bio
  • Shows location, company, website, and Twitter links
  • Optional stats section with repos/followers/following
  • Built-in loading and error states