InventoryGrid
Grid of item slots with selection, inspired by the backpack inventory.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| columns | number | 12 | Number of columns. |
| rows | number | 3 | Number of rows. |
| items | InventoryItem[] | — | Array of { id, icon, quantity?, quality? }. |
| selectedId | string | — | Currently selected item ID. |
| onSelect | (id: string) => void | — | Called when an item is clicked. |