Item grid
componentThe fundamental inventory/collection container: a CSS grid that lays out item tiles (passed as `children`).
Install
npx shadcn@latest add @engram/item-gridRegistry item: /r/item-grid.json — the machine-readable definition agents install from.
Example
510
506
503
510
509
506
508
506
463
444
454
448
450
460
Props
| Prop | Type | Default | Description |
|---|---|---|---|
columns | number | — | Fixed number of columns. Omit for a responsive auto-fill grid that packs as many `min`-wide tiles per row as fit (the default inventory behavior). |
min | number | 48 | Min tile width (px) for the responsive auto-fill grid. Default 48. |
gap | number | 4 | Gap between tiles (px). Default 4. |
Own the code: shadcn add copies this component's source into your repo to read and edit directly. Extend without forking — edit the source, use asChild to swap the element, or pass the typed annotations prop for curated data.