Referral rewards
A referral card: the invite link copies with a confirmation, a reward track fills as friends join and each tier unlocks where you can see it, and everyone you invited is listed with where they have got to.
Invite friends
Friends get their first month free. You earn rewards as they join.
- €10 creditUnlocked
- 1 month free3 friends
- Team seat5 friends
- 1 year free10 friends
Invited7 invited · 2 joined
- Lena Fischer3 Nov · lena@example.testRewarded
- Kofi Mensah18 Nov · kofi@example.testJoined
- Aiko Tanaka24 Nov · aiko@example.testInvited
- Mateo Ruiz26 Nov · mateo@example.testInvited
- Signe Dahl28 Nov · signe@example.testInvited
When to use
- Account pages and onboarding for products with a referral programme.
- Any “bring n people, get something” mechanic with more than one reward.
When not to use
- A single one-off reward; a sentence and a copy button do the job.
- Rewards with conditions people cannot see; state them beside the track.
Installation
pnpm dlx shadcn@latest add @caliper/referral-rewards
Adds its 7 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
ReferralRewards
12 props
tierFill
0 props
No props of its own; it accepts the native props of its root element.
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It exposes status, alert and progressbar semantics, with aria-label, aria-hidden, aria-valuemin, aria-valuemax, aria-valuenow and aria-valuetext kept in step with state. Changes that matter are announced through a live region.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/referral-rewards.mdThe index of every part is at /llms.txt.