Stat priority list
componentA drag-to-reorder priority list — the stat-priority picker for a build optimizer (drag Resilience above Recovery).
Install
npx shadcn@latest add @engram/stat-priority-listRegistry item: /r/stat-priority-list.json — the machine-readable definition agents install from.
Example
Weapons
Health
Class
Grenade
Super
Melee
Props
| Prop | Type | Default | Description |
|---|---|---|---|
order* | T[] | — | The ordered items (highest priority first). |
onReorder* | (next: T[]) => void | — | Fired with the reordered array after a drag-drop. |
renderItem* | (item: T, index: number) => ReactNode | — | Render the row content for an item. |
itemKey | (item: T) => string | (item) => String(item) | Stable key per item. Defaults to String(item). |
className | string | — | — |
Composition
pulled in on install- stat-priority-listcomponent
- dndcomponent
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.