Component packs › Questline › Reward Claim

Reward Claim

Claim it and the heap of gems on the card empties into your wallet, which counts up with every landing.

Reward Claim is a reward from Questline, a component pack with 6 gamification components: Gamification components where every reward visibly travels from what earned it. Price: $2 for the whole pack.

Built with: heap that empties, counting wallet, claimed state.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Reward Claim props

PropTypeDefaultDescription
balancenumber1240XP in the wallet. Default 1240.
amountnumber250XP the reward pays. Default 250.
titlestring
detailstring
onClaim(balance: number) => void
autoplaynumber | falseShowcase mode: claims (then offers a new reward) every N ms while visible.

Methods on the ref

Use it in React

import RewardClaim from './RewardClaim';

<RewardClaim />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Questline

Good for: Gamification and reactions.