ItemSlot
Dark recessed inventory slot for displaying items, matching Stardew Valley's inventory grid.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| quality | "basic" | "silver" | "gold" | "iridium" | — | Quality star indicator shown in the bottom-right corner of the slot. |
| quantity | number | — | Stack count displayed in the bottom-right corner. Only shown when greater than 1. |
| selected | boolean | false | Highlights the slot with a golden border glow to indicate selection. |
| empty | boolean | false | When true, hides children, quality star, and quantity to render an empty slot. |
| children | ReactNode | — | Content displayed inside the slot (icon, image, emoji, etc.). |
| className | string | — | Additional CSS classes to apply. |