Skip to content

Leaderboard Showcase

A complete leaderboard example with live updates, highlighting, and rank change indicators.

#PlayerScore
🥇ProGamer99ProGamer99125,000
🥈LuckyDragonLuckyDragon98,500
🥉WheelMasterWheelMaster87,200
4JackpotHunterJackpotHunter76,100
5CasinoKingCasinoKing65,400
6SlotQueenSlotQueen54,300
7BigWinner2024BigWinner202443,200
8FortuneSeekerFortuneSeeker32,100
9GoldenAceGoldenAce28,700
10LuckyCharmLuckyCharm21,500
10Players
125,000Top Score

Features Demonstrated

  • Rank medals - Gold, silver, bronze for top 3
  • Rank change indicators - Up, down, same arrows
  • Player highlighting - Highlight current user
  • Score formatting - Locale-aware number formatting
  • Scrollable list - Handles large player lists

Code

vue
<script setup lang="ts">
import { ref } from 'vue'
import { FkLeaderboard } from '@fortune-kit/components'

const entries = ref([
  { id: '1', rank: 1, name: 'ProGamer99', score: 125000, change: 'same' },
  { id: '2', rank: 2, name: 'LuckyDragon', score: 98500, change: 'up' },
  { id: '3', rank: 3, name: 'WheelMaster', score: 87200, change: 'down' },
  // ... more entries
])

const currentUserId = ref('4')
</script>

<template>
  <FkLeaderboard
    :entries="entries"
    :highlight-id="currentUserId"
    show-change
  />
</template>

Try It

Use the controls above to:

  • Toggle rank change indicators
  • Select different players to highlight
  • Add new players to the list
  • Simulate score updates

Built for iGaming with Vue 3