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
Aberrant Action
500
The Slammer
495
Mask of Fealty
501
Seventh Seraph Grips
500
Seventh Seraph Vest
503
Seventh Seraph Strides
502

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.