# XWUIGameItemActions

A right-click style context menu for a single item, listing actions such as equip, use, drop, or sell. It renders an optional header with the item's `icon` and `name`, then one row per entry in the `availableActions` array (each with `id`, `label`, optional `icon`, and a `destructive` flag that highlights dangerous choices). Clicking a row invokes the `onAction(actionId)` callback so the host can run the chosen command.

## Basic Usage

Shows an item header above a list of clickable actions including a destructive one.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: An item context menu listing equip/use/drop/sell-style actions with destructive highlighting.
```

## Consumable Menu

A potion's action menu with stack verbs - Use, Use All, Split Stack - plus a destructive Discard.

```example
file: examples/ConsumableMenu.ts
html: examples/ConsumableMenu.html
title: Consumable Menu
description: A consumable context menu offering Use/Use All/Split Stack and a destructive Discard.
```

## Vendor Sell Menu

A menu that swaps its action list from bag mode to vendor (Sell/Buyback) actions via `updateData()`.

```example
file: examples/VendorSellMenu.ts
html: examples/VendorSellMenu.html
title: Vendor Sell Menu
description: A context menu that switches between bag and vendor action sets through updateData().
```

```api
```
