# XWUIGameLeaderboard

A ranked leaderboard table that lists `entries` with rank, player (avatar/initial + escaped name), and formatted score, gold/silver/bronze-tinting the top three ranks and highlighting the `isPlayer` and `isFriend` rows. A header can surface the viewer's `playerRank`, an optional search box (`showSearch`) fires `onSearch(query)` on Enter, and when `totalPages > 1` prev/next controls page through results (next calls `onNextPage`). `pageSize` sets entries per page; load data and pagination state via `updateData(...)`.

## Basic Usage

Shows a ranked score table with player highlight, search, and pagination.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: A leaderboard table with top-rank coloring, player/friend highlighting, search, and page controls.
```

## Friends Board

A friend-focused board where most rows are flagged as friends and one is the player.

```example
file: examples/FriendsBoard.ts
html: examples/FriendsBoard.html
title: Friends Board
description: A short leaderboard where most entries carry isFriend badges and a single page hides the pager.
```

## Minimal Ranking

A stripped-down top-five table with the search box hidden and no pagination.

```example
file: examples/MinimalRanking.ts
html: examples/MinimalRanking.html
title: Minimal Ranking
description: A top-five ranking with showSearch off and a single page, leaving just the rank-tinted table.
```

```api
```
