Component packs › Questline › Level Up
XP fills the ring round the badge; when it closes, the badge turns over to the new level and sheds gems.
Level Up is a level up 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: badge flip, gem burst with gravity, unlock line.
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.
| Prop | Type | Default | Description |
|---|---|---|---|
level | number | ||
xp | number | 420 | XP into the level. Default 420. |
max | number | 500 | XP per level. Default 500. |
reward | number | 120 | XP the button pays. Default 120. |
unlocks | string[] | What each new level unlocks, from the next level on. | |
onLevel | (level: number) => void | ||
autoplay | number | false | Showcase mode: finishes a lesson every N ms while visible. |
readonly level: numberearn(xp: number): voiddestroy(): voidimport LevelUp from './LevelUp';
<LevelUp />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Gamification and reactions.