# XWUIGameAuctionHouse

Auction creation and bidding interface. In `mode: 'create'` it shows a form for item name, starting price, buyout, and duration; in `mode: 'bid'` it renders a detail panel with the current/start/buyout prices, time left, a bid input, a buyout button, and an optional bid-history list. Drive it with the `auction` data object (`item`, `startPrice`, `currentBid`, `buyout`, `timeLeft`, `bids[]`); cap entries via `conf_comp.maxDuration` and `conf_comp.minBid`, and toggle the history list with `showHistory`. Bidding dispatches the `xwui-auction-bid` event (and `placeBid(amount)` does the same), with `xwui-auction-buyout` and `xwui-auction-create` for the other actions.

## Basic Usage

Mounts the auction house in its default bid mode.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: Mounts the auction house panel ready to display an auction and accept bids.
```

## Create Listing

Switches to `mode: "create"`, showing the seller form whose price and duration inputs are bounded by minBid and maxDuration.

```example
file: examples/CreateListing.ts
html: examples/CreateListing.html
title: Create Listing
description: The seller-side auction-creation form via mode:"create" with minBid and maxDuration limits.
```

## Hidden History

A high-stakes bidding war shown without the bid log by setting showHistory:false.

```example
file: examples/HiddenHistory.ts
html: examples/HiddenHistory.html
title: Hidden History
description: A bid-mode auction with showHistory:false hiding the populated bid log.
```

```api
```
