Engram

Stat range slider

component

A dual-thumb min/max range slider with optional tier ticks — the stat filter for a build optimizer ("Resilience ≥ 60", "Mobility 30–70").

Install

npx shadcn@latest add @engram/stat-range-slider

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

Example

Resilience60100

Props

PropTypeDefaultDescription
minnumber0Track minimum. Default 0.
maxnumber100Track maximum. Default 100.
value*[number, number]The selected [low, high] bounds.
stepnumber1Step between values. Default 1.
tiersnumberTier breakpoint spacing — draws ticks every `tiers` units (e.g. 10).
onChange(value: [number, number]) => void
labelReactNodeRow label shown above the track.
classNamestring

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.