Engram

Mod slot

component

One armor mod socket: a square plug with its energy-cost pip in the corner, or an empty "+" placeholder.

Install

npx shadcn@latest add @engram/mod-slot

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

Example

Props

PropTypeDefaultDescription
plugPlugPropsThe inserted armor mod; omit for an empty socket.
energyCostnumberEnergy cost — shown as a small pip in the corner.
emptybooleanfalseForce the empty placeholder.
onPick() => voidFired when the socket is clicked (open the plug picker).
popupReactNodeInspect content shown on hover (e.g. a ). When set, the socket becomes the trigger of an .
sizenumber44Pixel size.
selectedbooleanfalse

Composition

pulled in on install

Dependencies

npm
@engram/core

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.