Engram

Subclass diamond

component

The signature subclass node: a 45°-rotated diamond frame tinted by its damage type, with the subclass icon upright inside and an optional super overlay.

Install

npx shadcn@latest add @engram/subclass-diamond

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

Example

Props

PropTypeDefaultDescription
iconImageRefSubclass icon (rendered upright inside the diamond).
elementElementTypeDamage type — tints the diamond frame + glow.
superImageRefSuper icon overlaid in the corner.
popupReactNodeInspect content shown on hover (e.g. a ). When set, the diamond becomes the trigger of an .
sizenumber56Pixel size of the bounding box.
selectedbooleanfalseHighlight as the active subclass.

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.