# XWUIGameItemInspect

A detailed item card that renders a single `item` with a rarity-colored border and name, a rarity badge, and - as the data provides them - a description, a stat list, socket slots, lore/flavor text, an obtained-from source line, and a gold value. The `mode` config switches between a compact `tooltip` and a full `modal` presentation, and `showLore`, `showSockets`, and `showSource` toggle those optional sections. Update the displayed item (merging into the current one) via `updateData({ item })`.

## Basic Usage

Shows a rarity-bordered item card with stats, sockets, lore, and source.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: A detailed item inspect card with rarity border, stats, sockets, lore, and source line.
```

## Legendary Modal

A legendary weapon rendered in `modal` mode with a full stat block, a three-socket row, and lore.

```example
file: examples/LegendaryModal.ts
html: examples/LegendaryModal.html
title: Legendary Modal
description: A modal-mode inspect card for a legendary weapon with its complete stats, sockets, and lore.
```

## Compact Tooltip

A trimmed tooltip-mode card that hides lore and source, leaving just the name, stats, and sockets.

```example
file: examples/CompactTooltip.ts
html: examples/CompactTooltip.html
title: Compact Tooltip
description: A tooltip-mode card with showLore and showSource off, showing only name, stats, and sockets.
```

```api
```
