Design system/Components
Slider
A slider sets a continuous value by dragging: field width in Folio, audio playback position. A 6px track whose filled part is orange and an 18px knob; 8 and 24 on phones.
In codecomponents/controls.tsx (Slider)components/controls.css (.ds-range)
Live example
Size and state
Track
6px · r 999pxPhone 8pxFilled / empty
var(--accent) / var(--border-strong)Handle
18px · border 2px var(--card)Phone 24pxPress
scale(1.15) · 0.12sFocus
2px ring on the handle- The slider is dir="ltr", even in Persian: the value grows from left to right like a number line, and the playback slider moves forward with time the same way.
- aria-valuetext states the value in the person's language: “45 percent”, not “45”.
- For an exact value, the slider isn't alone: Folio has numeric coordinates next to it.
Code
<Slider min={10} max={100} value={w} onChange={setW}
ariaLabel={tr("پهنا")} valueText={`${w.toLocaleString(numLocale())}٪`} />Related pages