Command Palette

Search for a command to run...

Polar/Polar Sponsor Grid

Polar Sponsor Grid

Grid of sponsor avatars grouped by tier with customizable colors and avatar sizes.

Open in v0Open in
Platinum(4)
Vercel
Supabase
Prisma
Clerk
Gold(3)
Neon
Resend
Upstash
Silver(2)
AS
BJ
Bronze(2)
CW
DB
Supporter(3)
EM
FL
GK

Overview

Display your sponsors in a beautiful tiered grid. Automatically groups sponsors by contribution amount with customizable tier labels and avatar sizes.

Installation

npx shadcn@latest add "https://elements.crfrst.dev/r/polar-sponsor-grid"

Usage

import { PolarSponsorGrid } from "@/components/elements/polar-sponsor-grid";

const sponsors = [
  { id: "1", name: "Vercel", avatarUrl: "https://github.com/vercel.png", amount: 500 },
  { id: "2", name: "Supabase", avatarUrl: "https://github.com/supabase.png", amount: 250 },
  { id: "3", name: "Alice Smith", amount: 25 },
];

export function SponsorsSection() {
  return <PolarSponsorGrid sponsors={sponsors} showTierLabels />;
}

Props

PropTypeDefaultDescription
sponsorsSponsor[]-Array of sponsor objects
tiersSponsorTier[]Default tiersCustom tier definitions
showTierLabelsbooleantrueShow tier section labels
avatarSize"sm" | "md" | "lg"AutoOverride avatar size
maxDisplaynumber-Limit displayed sponsors

Sponsor Object

interface Sponsor {
  id: string;
  name: string;
  avatarUrl?: string;
  profileUrl?: string;
  tier?: string;
  amount?: number;
}

Custom Tiers

const customTiers = [
  { name: "Diamond", minAmount: 1000, color: "#b9f2ff" },
  { name: "Gold", minAmount: 100, color: "#FFD700" },
  { name: "Silver", minAmount: 50, color: "#C0C0C0" },
];

Features

  • Automatic tier grouping by amount
  • Customizable tier colors and thresholds
  • Avatar fallback with initials
  • Profile link support
  • Hover scale animation
  • Empty state display