# SlotGridComponent and PlayerInventoryComponent

The game's item slots, drawn in your theme. A chest grid, the player inventory, a single slot, with counts up to 34M.

```java
Box chest = SlotLayout.grid("chest", 13, 27, 2, 9);
add(new SlotGridComponent(at(chest), 2, 9).items(stacks).marked(2, true));
add(new PlayerInventoryComponent(at(SlotLayout.playerInventory("inv", 13, SlotLayout.inventoryTop(27, 2))))
        .items(player.all36()).label("Inventory"));
add(new SlotComponent(at(new Box("storage", 200, 26, 18, 18))).item(ItemView.of("minecraft:cobblestone"), 1_234));
```

## Variants

- Display: Hover a slot for its tooltip.

Page: https://minuit.dryaides.com/components/slots.html
