skip to the page
superthread
componentsslider
system
superthread
version
2.15.1
date
24.11.26

slider

a flat foreground range inside an 8 px ruled track. square thumbs set one value or the two ends of a range.

bunx --bun shadcn@latest add @mk/slider

example

set how many workers an orbit run can use. drag the thumb or use the arrow keys; home and end reach the limits.

light

orbit workers

4 workers. use the arrow keys to adjust.

dark

orbit workers

4 workers. use the arrow keys to adjust.

variants

one value gives one thumb. an array gives one per bound, and a vertical track keeps the same dimensions.

light

quanta reading minutes

single
one value, one thumb

run duration range, minutes

range
two bounds, two thumbs

worker capacity

vertical
same track and thumb dimensions

dark

quanta reading minutes

single
one value, one thumb

run duration range, minutes

range
two bounds, two thumbs

worker capacity

vertical
same track and thumb dimensions

states

the 16 px thumb takes the control hover fill on hover and while dragging. keyboard focus draws the house ring outside it. at either limit, the thumb stays inside the track.

light

capacity, rest

rest
8 px track, 16 px thumb

capacity, hover

hover
control hover thumb

capacity, focus

focus
outside house ring

capacity, dragging

dragging
control hover thumb

capacity, minimum

minimum
thumb stays inside

capacity, maximum

maximum
flat foreground range

capacity, disabled

disabled
disabled edge and range

dark

capacity, rest

rest
8 px track, 16 px thumb

capacity, hover

hover
control hover thumb

capacity, focus

focus
outside house ring

capacity, dragging

dragging
control hover thumb

capacity, minimum

minimum
thumb stays inside

capacity, maximum

maximum
flat foreground range

capacity, disabled

disabled
disabled edge and range