Plug picker
componentA grid of selectable plugs — the picker body for swapping a mod, perk, aspect, or fragment.
Install
npx shadcn@latest add @engram/plug-pickerRegistry item: /r/plug-picker.json — the machine-readable definition agents install from.
Example
Combat
Utility
Props
| Prop | Type | Default | Description |
|---|---|---|---|
options* | PlugPickerOption[] | — | — |
selected | number | — | Hash of the currently selected plug. |
onSelect | (option: PlugPickerOption) => void | — | — |
groupBy | (option: PlugPickerOption) => string | undefined | — | Group options under headers (defaults to each option's `group`). |
kind | "perk" | "mod" | "mod" | Perks render as circles, mods as squares. |
size | number | 48 | Pixel size per option. |
Composition
pulled in on install- plug-pickercomponent
- item-gridcomponent
- mod-slotcomponent
- bungie-imageatom
- item-hover-cardcomponent
- plugcomponent
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.