Staaarter

Billing Referral Dashboard Mini

A condensed referral performance card for partner or affiliate portals, showing clicks, signups, and conversion rate in a three-column strip, plus an earned-this-month total and the partner's referral link. Sized for a dashboard sidebar or widget rather than a full analytics page.

By Staaarter Team
Billing
Updated May 24, 2026
Docs
Live preview

Docs

Installation

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

npx shadcn add https://staaarter.com/r/billing-referral-dashboard-mini.json

Prefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/billing/billing111.tsx instead.

Usage

The file also exports billing111Demo, 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 { Billing111, billing111Demo } from "@/components/blocks/billing/billing111";

export default function Page() {
  return <Billing111 {...billing111Demo} />;
}

Props

PropTypeDefaultDescription
headingstring"Referral performance"Card heading.
descriptionstringnoneOptional one-line note under the heading.
clicksnumbernoneTotal link clicks, formatted with a 'k' suffix above 1,000.
signupsnumbernoneTotal signups attributed to the referral link.
conversionRatestringnoneSignups divided by clicks, already formatted as a percentage string.
earnedThisMonthstringnoneCommission earned this month, already formatted as currency.
referralLinkstringnoneThe partner's tracking link, shown in the footer.
shareHrefstring"#"Destination for the Share link button.
classNamestringnoneExtra classes for the outer container.

Behavior notes

  • clicks and signups are numbers formatted by a small internal helper that shows a 'k' suffix above 1,000 (e.g. 2840 renders as 2.8k); conversionRate and earnedThisMonth are plain pre-formatted strings.
  • The Share link control is a next/link, not a client-side clipboard copy, so it works without JavaScript and can point at a real share flow or referral page.
  • This is a non-client component. It has no local state; every value comes in through props and re-renders whenever the caller's data changes.
  • The referral link is shown as plain read-only text in the footer, not an editable input.

Frequently asked questions