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*ReactNode—Bucket name (e.g. "Kinetic Weapons", "Helmet").
equippedReactNode—The equipped item, rendered above the stored grid.
countnumber—Stored item count (the filled slots).
capacitynumber—Bucket capacity — shown as `count / capacity`; turns "bad" when over.
collapsiblebooleantrueWhether the column collapses. Default true.
defaultOpenbooleantrueInitial open state when collapsible. Default true.
columnsnumber—Grid columns (passthrough to ).
minnumber—Responsive min tile width (passthrough to ).
gapnumber—Grid gap (passthrough to ).
childrenReactNode—The 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.