Staaarter

Referral Leaderboard

A centered coming-soon screen that gamifies pre-launch invites. A bordered, ranked list shows each member's avatar and invite count, with the top rank badged by a trophy icon and the viewer's own row highlighted, above a share button for the viewer's invite link.

By Staaarter Team
Coming Soon
Docs
Live preview

Docs

Installation

A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its avatar, avatar-initials, button dependencies and any missing npm packages, and installs them straight into your project.

npx shadcn add https://staaarter.com/r/referral-leaderboard.json

Prefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/coming-soon/comingsoon37.tsx instead.

Usage

The file also exports comingsoon37Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.

import { ComingSoon37, comingsoon37Demo } from "@/components/blocks/coming-soon/comingsoon37";

export default function Page() {
  return <ComingSoon37 {...comingsoon37Demo} />;
}

Props

PropTypeDefaultDescription
eyebrowstring"Coming soon"Small label above the heading.
headingstring"Referral leaderboard"Main heading.
descriptionstring"Invite friends before launch to climb the ranks..."Supporting copy under the heading.
membersReferralMember[]noneRanked members, in the order they should be displayed.
shareLabelstring"Share your invite link"Label for the share button.
classNamestringnoneExtra classes for the outer section element.

Types

export interface ReferralMember {
  id: string;
  name: string;
  avatarSrc?: string;
  invites: number;
  isViewer?: boolean;
}

Behavior notes

  • Fully static Server Component, the list order and highlighted "you" row are just data passed in via props, nothing recalculates on the client.
  • Avatars fall back to initials (via `initialsFromName`) when no `avatarSrc` is provided.
  • The "Share your invite link" button is decorative with no onClick handler, same as other inert CTAs across the category.