# XWUIGameChatPanel

An in-game chat window with color-coded channel tabs (`general`, `party`, `guild`, `whisper`, `trade`), a scrolling message history, and a send input row. Messages are filtered to the `activeChannel` and capped by the `maxHistory` config (default 100), with optional per-message timestamps toggled by `showTimestamp`. Each message carries `sender`, `text`, `channel` and an `isSystem` flag; use `onSend` / `onSwitchChannel` callbacks and the `send()` / `switchChannel()` methods to wire it to your networking layer.

## Basic Usage

Constructs a chat panel in `#app` with default channels and an empty message list.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: A chat window with channel tabs, message history, timestamps, and send controls.
```

## Party Channel

Opens on the party tab with raid coordination and a system join line.

```example
file: examples/PartyChannel.ts
html: examples/PartyChannel.html
title: Party Channel
description: activeChannel set to party, filtering to party messages including an isSystem join notice.
```

## Trade Feed

A two-tab marketplace stream with timestamps hidden.

```example
file: examples/TradeFeed.ts
html: examples/TradeFeed.html
title: Trade Feed
description: channels narrowed to trade/general with showTimestamp off for a clean listing scroll.
```

```api
```
