Component packs › Questline › Leaderboard Reorder

Leaderboard Reorder

Points fly into your score and your row lifts and climbs past rivals on a spring as the ranks follow.

Leaderboard Reorder is a leaderboard 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: spring reorder, lifted row, ordered list.

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.

Leaderboard Reorder props

PropTypeDefaultDescription
players{ name: string; score: number; avatar?: string }[]"You") is highlightedPlayers. The one named `you` (default "You") is highlighted.
youstring
rewardnumber90Points the quiz button pays. Default 90.
onChange(rank: number) => void
autoplaynumber | falseShowcase mode: someone scores every N ms while visible.

Methods on the ref

Use it in React

import Leaderboard from './Leaderboard';

<Leaderboard />

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

More in Questline

Good for: Gamification and reactions.