Skip to content

[slider] Allow swapping thumbs on range slider #1220

Open
@benjavicente

Description

@benjavicente

Coming from @mui/base, @base-ui-components/react seems to lack the correct thumb placement (will be fixed with #1175), marks, and the ability to swap thumbs. While swapping values does not follow the Slider WAI-ARIA design pattern (see relevant RadixUI discussion about that), swapping might provide better UX, specially when thumbs are overlapping.

Where is a comparison with@base-ui-components/react vs @mui/base. In the base ui example, since the clicks happen on the left side of the thumb, the left thumb is selected, even thought there is an intent to slide to the right.

Screen.Recording.2024-12-23.at.14.04.18.mov
Screen.Recording.2024-12-23.at.14.06.45.mov

So, it could be great to have the ability to enable always thumb swaping like in mui-base, and would be amazing if this library manages to include a threshold of when it should overlap. I couldn't find a library that does this last behavior 🤔

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: sliderThis is the name of the generic UI component, not the React module!new featureNew feature or requestregressionA bug, but worsewaiting for 👍Waiting for upvotes

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions