Engram

Bucket column

component

A single inventory bucket: a collapsible labeled header with a capacity counter, an optional equipped slot, and the stored items in an ItemGrid.

Install

npx shadcn@latest add @engram/bucket-column

Registry item: /r/bucket-column.json — the machine-readable definition agents install from.

Example

Festival Flight
510
Horror's Least
506
Seventh Seraph SAW
503
Mask of Bakris
510
Triumphal Anthem Grips
509
Iron Battalion Vest
506
Triumphal Anthem Strides
508

Props

PropTypeDefaultDescription
title*ReactNodeBucket name (e.g. "Kinetic Weapons", "Helmet").
equippedReactNodeThe equipped item, rendered above the stored grid.
countnumberStored item count (the filled slots).
capacitynumberBucket capacity — shown as `count / capacity`; turns "bad" when over.
collapsiblebooleantrueWhether the column collapses. Default true.
defaultOpenbooleantrueInitial open state when collapsible. Default true.
columnsnumberGrid columns (passthrough to ).
minnumberResponsive min tile width (passthrough to ).
gapnumberGrid gap (passthrough to ).
childrenReactNodeThe stored item tiles.
classNamestring

Composition

pulled in on install

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.