# XWUIGameProfileStats

A player profile summary page with a header card showing the avatar (image from `avatarUrl` or initials from `playerName`), level, `playtime`, and achievement count. Below the header it renders a Statistics grid of `stats` (label/value cells) when `showStats` is on, and a Recent Activity feed of `recentActivity` (capped at `maxActivityItems`, default 10) when `showActivity` is on - each entry carries a type-based icon, text, and optional timestamp. Toggle the avatar with `showAvatar`, and refresh any field via `updateData(...)`.

## Basic Usage

Shows a profile header with a stats grid and recent activity feed.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: A player profile page with avatar header, level and playtime, a stat grid, and an activity feed.
```

## Stats Only

A compact profile card showing the header and stat grid with the activity feed hidden.

```example
file: examples/StatsOnly.ts
html: examples/StatsOnly.html
title: Stats Only
description: A profile card with showActivity off, leaving the avatar header and the statistics grid.
```

## Activity Focus

An activity-feed-first card with the avatar and stat grid suppressed.

```example
file: examples/ActivityFocus.ts
html: examples/ActivityFocus.html
title: Activity Focus
description: A profile with showAvatar and showStats off and maxActivityItems capping the recent activity feed.
```

```api
```
