Engram

Stat priority list

component

A 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-list

Registry item: /r/stat-priority-list.json — the machine-readable definition agents install from.

Example

Weapons
Health
Class
Grenade
Super
Melee

Props

PropTypeDefaultDescription
order*T[]The ordered items (highest priority first).
onReorder*(next: T[]) => voidFired with the reordered array after a drag-drop.
renderItem*(item: T, index: number) => ReactNodeRender the row content for an item.
itemKey(item: T) => string(item) => String(item)Stable key per item. Defaults to String(item).
classNamestring

Composition

pulled in on install
  • stat-priority-listcomponent

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.