Engram

Mod popup

component

The armor-mod inspect flyout — the in-game mod tooltip, the mod counterpart to PlugPopup.

Install

npx shadcn@latest add @engram/mod-popup

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

Example

Super Mod

General Armor Mod

3Energy Cost
+10 Super

Props

PropTypeDefaultDescription
footerReactNode—Action buttons (e.g. an Equip / Insert button).
classNamestring——
name*string——
subtitlestring—Mod category, e.g. "General Armor Mod", "Chest Armor Mod".
energyCostnumber—Armor energy cost.
energyIconImageRef—The energy-cost glyph (the "hammer") shown beside the cost — the "Any Energy Type Cost" stat icon. Falls back to a gold pip when omitted.
iconImageRef—The mod's icon — shown beside its effect description.
statsModStat[]—Stat bonuses, e.g. +10 Super.
descriptionstring—Effect description.
notestring—Info note (the ⓘ line) — e.g. stacking / diminishing-returns text.

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.