Components
Inventory Grid
A fixed-slot inventory grid with quantity and rarity states.
Inventory Grid
inventory-grid
InventoryReadycomponent
A fixed-slot inventory grid with quantity and rarity states.
npx shadcn@latest add @gamecn/inventory-gridLive Preview
Rendered with the component style selected in the top-right selector.
Frame
Scale100%
Examples
Basic setup, game-state usage, and customization paths.
Basic
Install Inventory Grid and render it with the default GameCN treatment.
npx shadcn@latest add @gamecn/inventory-gridimport { InventoryGrid } from '@/components/ui/inventory-grid'Advanced
Use Inventory Grid with richer game-state data such as variants, empty states, compact density, or critical states.
<InventoryGrid
className="max-w-md"
/>Customization
Swap artwork, tune tokens, and wire the installed copy to your live game state.
<InventoryGrid
iconSrc="/game-assets/inventory-grid.png"
/>