[Slider] Arbitrarily restrict the possible values of the slider #412
Labels
component: slider
This is the name of the generic UI component, not the React module!
new feature
New feature or request
Currently the
marks
andstep
props are used together to restrict the possible values of the slider to some arbitrary numbers like this:(Here is a full demo from the docs)
However it doesn't make sense to have
marks
, which should be only about the visual marks, dictate the step.We decided to redesign this feature using the component-per-node API, e.g.:
RestrictedValue
component is present, thestep
prop should be ignoredRestrictedValue
component could render a span with some minimal positioning stylesSearch keywords:
The text was updated successfully, but these errors were encountered: