Elastic slider
CoreA slider that stretches like rubber past its ends, with a swaying value tag and detents the thumb clicks into.
pnpm dlx shadcn@latest add https://wui.alann.works/r/elastic-slider.jsonAPI Reference
| Prop | Type | Default |
|---|---|---|
label* | string | required |
value | number | — |
defaultValue | number | — |
onValueChange | (value: number) => void | — |
onValueCommit | (value: number) => void | — |
min | number | — |
max | number | — |
step | number | — |
largeStep | number | — |
marks | (number | ElasticSliderMark)[] | — |
format | (value: number) => string | — |
showValue | boolean | — |
startIcon | ReactNode | — |
endIcon | ReactNode | — |
name | string | — |
disabled | boolean | — |
className | string | — |