# XWUIGameFurniturePlacement

Bottom toolbar for housing furniture-placement mode. It previews the `selectedItem` (name + icon), exposes rotation controls, a snap-to-grid toggle, and confirm/cancel buttons, and reflects a valid/invalid placement state via the `valid` flag. Data props are `selectedItem`, `rotation` (degrees), `snapEnabled`, and `valid`; `conf_comp` offers `showRotation`, `showSnap`, and `gridSize`. The API methods `rotate(degrees = 90)`, `toggleSnap()`, `confirm()`, and `cancel()` each fire a matching event - `xwui-furniture-rotate`, `xwui-furniture-snap`, `xwui-furniture-confirm`, `xwui-furniture-cancel`.

## Basic Usage

Mounts the furniture-placement toolbar with its rotation and snap controls.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: Mounts the placement toolbar with item preview, rotation controls, snap toggle, and confirm/cancel buttons.
```

## Invalid Spot

An overlapping placement flagged with valid:false, which marks the preview invalid and disables the Place button.

```example
file: examples/InvalidSpot.ts
html: examples/InvalidSpot.html
title: Invalid Spot
description: A blocked placement with valid:false showing the invalid preview and a disabled Place button.
```

## Free Rotate

A decor item placed with the snap toggle hidden via showSnap:false, starting pre-rotated.

```example
file: examples/FreeRotate.ts
html: examples/FreeRotate.html
title: Free Rotate
description: A rug with showSnap:false and a custom gridSize, seeded at 180° rotation.
```

```api
```
