react-slider
Advanced tools
Changelog
1.0.0 (2019-09-27)
onAfterChange
was not being fired (71746b2), closes #3children
(3cb3413)input[type=range]
nomenclature (e4e8ff8)ariaValuetext
now supports a function for dynamic value text (021a547)renderThumb
now renders the entire thumb node rather than just the thumb content (669dcdb)withTracks
is now true by default (a450420)renderBar
render prop for customizing bar content (0de9013)renderHandle
render prop for dynamic handle content (c87ed4b)valueNow
to state objects of ariaValuetext
and renderThumb
for easier access to the current value (94712f2)value
state to render props (8b0615d)pageFn
prop (de75419)renderThumb
and renderTrack
are now passed two arguments
instead of one, props
and state
. This makes it easier to just spread props when using
a render function.renderThumb
was previously given the indexed handle value
which now needs to be derived from value
and `index.children
is no longer supported.
To customize thumbs, use the renderThumb
render prop instead.withTracks
is more commonly true than false,
so we are making that the defaultwithBars
is now withTracks
, and handleClassName
is now thumbClassName
Changelog
1.0.0 (2019-09-27)
onAfterChange
was not being fired (71746b2), closes #3children
(3cb3413)input[type=range]
nomenclature (e4e8ff8)ariaValuetext
now supports a function for dynamic value text (021a547)renderThumb
now renders the entire thumb node rather than just the thumb content (669dcdb)withTracks
is now true by default (a450420)renderBar
render prop for customizing bar content (0de9013)renderHandle
render prop for dynamic handle content (c87ed4b)valueNow
to state objects of ariaValuetext
and renderThumb
for easier access to the current value (94712f2)value
state to render props (8b0615d)pageFn
prop (de75419)renderThumb
and renderTrack
are now passed two arguments
instead of one, props
and state
. This makes it easier to just spread props when using
a render function.renderThumb
was previously given the indexed handle value
which now needs to be derived from value
and `index.children
is no longer supported.
To customize thumbs, use the renderThumb
render prop instead.withTracks
is more commonly true than false,
so we are making that the defaultwithBars
is now withTracks
, and handleClassName
is now thumbClassName