API reference
@salmonui/inputs/slider
11 exported symbols: 1 component, 6 interfaces and 4 types. Each name links its page with the signature, docs and members.
import { … } from '@salmonui/inputs/slider';Components
SliderSlider: single or two-thumb range on native range inputs, ticks, value labels, limits, vertical orientation and RTL mirroring. ref is the root element.
Interfaces
SliderChangeDetailsSecond argument of onValueChange and onValueCommit.SliderLimitsThumb bounds inside min..max; startFixed / endFixed lock a thumb.SliderPropsSliderTickContextArgument of renderTick.SliderTicksTick marks.SliderValueLabelThe value bubble over each thumb.
Types
SliderLocaleTextUser-visible strings: start / end name the thumbs of a range slider.SliderScalarOne slider value: a number, or an entry of values.SliderValueA single value or a [start, end] range.SliderValueOfThe value type callbacks receive: literals widened (50 -> number).