Canvacord

LeaderboardProps

Properties

abbreviate

Whether or not to abbreviate the numeric values.

Type:boolean

background

The background image.

Type:null|ImageSource

backgroundColor

The background color.

Type:string

header

The header of this leaderboard ui.

Type:{ image: ImageSource, subtitle: string, title: string }

players

The players of this leaderboard ui.

Type:Array<{ avatar: ImageSource, displayName: string, level: number, rank: number, username: string, xp: number }>

text

The text values of this leaderboard ui.

Type:{ level: string, rank: string, xp: string }