-
-
Notifications
You must be signed in to change notification settings - Fork 379
Closed
Labels
component: sliderChanges related to the slider component.Changes related to the slider component.type: new featureExpand the scope of the product to solve a new problem.Expand the scope of the product to solve a new problem.
Description
<Slider.Root defaultValue={50}>
<Slider.Output />
<Slider.Control>
<Slider.Track>
<Slider.Indicator />
<Slider.Thumb />
</Slider.Track>
</Slider.Control>
</Slider.Root>Breaking Changes
- Thumbs can no longer swap positions/be dragged past each other, the related
disableSwapprop has been dropped - A new
Controlsubcomponent is added to represent the click/touch area of the slider. Previously this component's functionality was implemented in the root, but it was introduced becauseSlider.Rootin the new API is expected to contain theOutputelement and a label as well. - The
Railcomponent which referred to the visible bar along which the thumb can move is now renamed to be theTrack - The component representing the filled portion of the slider track is is renamed from
TracktoIndicator Thumb's internalinputelement is no longer exposed (it used to be viaslots.input)- The
Markcomponent/slot, and themarksprop have been dropped - The
stepprop defaults to1and can no longer benull. - The
ValueLabelslot/component and related features have been dropped. This design can be implemented usingTooltipas in this demo - The restricted values feature will be redesigned, and decoupled from any props related to the visual marks: [slider] Arbitrarily restrict the possible values of the slider #412
- The
isRtlprop is replaced withdirection: 'ltr' | 'rtl'for consistency - A new
minStepsBetweenValuesprop (default0) is added to prevent thumb overlap - The
scaleprop is deprecated
Related issues
Each of these related issues should be considered when designing and implementing this new component. When this issue is resolved, these related issues should be closed.
- [slider] Issues with adding focus-visible styles to the thumb slot #77
- [slider] Thumb shifts to the right upon clicking #76
- [Slider]
track="inverted"does not work #48
Search keywords:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
component: sliderChanges related to the slider component.Changes related to the slider component.type: new featureExpand the scope of the product to solve a new problem.Expand the scope of the product to solve a new problem.
Projects
Status
Recently completed