Component packs › Questline › Level Up

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.

Level Up props

PropTypeDefaultDescription
levelnumber
xpnumber420XP into the level. Default 420.
maxnumber500XP per level. Default 500.
rewardnumber120XP the button pays. Default 120.
unlocksstring[]What each new level unlocks, from the next level on.
onLevel(level: number) => void
autoplaynumber | falseShowcase mode: finishes a lesson every N ms while visible.

Methods on the ref

Use it in React

import LevelUp from './LevelUp';

<LevelUp />

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

More in Questline

Good for: Gamification and reactions.