Slider
A touch-friendly single-value or dual-thumb range slider. It is controlled — the parent owns the value and reads it back from @input (live during drag) and @change (on commit). A focused thumb responds to arrow keys, PageUp / PageDown, and Home / End.
60
Installation
Copy the piece into your app — it compiles with your build and the code is yours:
puzzle add piece slider
Requires the pieces.css tokens merged into your app styles (see Introduction).
Usage
import Slider from '@/components/ui/Slider.pzl';
<Slider value={ volume } min={ 0 } max={ 100 } @input={ setVolume } @change={ setVolume } />Range
$200 – $800
Steps
40
33
Ticks
45
50
30
Tick labels
60
100%
Tick position
Custom ticks
70
0