Back to blocks
BlockDashboard / ApplicationFree

Referral Widget React component

A refer-a-friend card: give-and-get explainer, your link with a Copy button that flips to Copied, quick share links, email invites, how much you have earned, a milestone track that unlocks bonuses with confetti, and your friends' progress from invited to subscribed with reminders.

About the Referral Widget component

Referral Widget turns a refer-a-friend program into one friendly card. The left side explains the deal in a sentence and gives people every way to share: copy their link, send it by email or message, or type friends' emails straight into the card.

The right side shows what sharing has earned so far, a track of bonuses that unlock as more friends subscribe, and each friend's progress from invited to signed up to subscribed. Reaching a bonus throws confetti, and friends who stalled can get a reminder.

When to use it

Use it in account or billing settings, a dashboard sidebar, a post-purchase thank-you page or a dedicated referrals page.

Keep the reward simple and symmetrical; 'give $20, get $20' beats a table of tiers.

Installation

Add the Referral Widget component to your project with the shadcn CLI. It lands in components/referral-widget.tsx as plain React + Tailwind CSS source you own and can edit.

Install
Copied!
npx shadcn@latest add @reactframe/referral-widget

Or copy the source by hand and install its dependencies:

Install
Copied!
npm install motion clsx tailwind-merge

More Dashboard / Application components

App Shell, Sidebar Layout
Free
What's New / In-app Changelog Widget
Free
App Shell, Stacked Layout
Free
Map Block
Free
App Shell, Multi-column Layout
Free
Workflow Builder Block
Free