# XWUIGameTargetInfoPanel

A panel describing the current target: `name` plus a `Lv.` badge, an HP bar computed from `hp`/`maxHp`, and a row of `statusEffects` (each `{ name, icon, duration }`). Toggle the level badge, status row, and a `compact` layout via config, then drive updates with `setTarget(data)` and hide the panel (empty state) with `clear()`.

## Basic Usage

Mounts the panel populated with a named, levelled target at partial HP and one status effect, so all sections render immediately.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: A populated panel showing name, level badge, a partial HP bar, and one status effect.
```

## Boss With Statuses

A high-level boss at low HP carrying three stacked `statusEffects` in the status row.

```example
file: examples/BossWithStatuses.ts
html: examples/BossWithStatuses.html
title: Boss With Statuses
description: A low-HP elite boss with three concurrent status effects rendered beneath the HP bar.
```

## Compact No-Status

A `compact` panel with the status row hidden, retargeted at runtime with `setTarget()`.

```example
file: examples/CompactNoStatus.ts
html: examples/CompactNoStatus.html
title: Compact No-Status
description: A compact panel with showStatus off, re-pointed at a new enemy via setTarget().
```

```api
```
