Skip to content

[Feature Request] Slider - custom step values #3621

@SinnerK0N

Description

@SinnerK0N

Is your feature request related to a problem? Please describe.

In some cases it doesnt make sense to give the user the choice to pick any value on a slider. For example when using a slider to filter through the sizes of a hard drives, valid values could be 128, 256, 512 GB so it doesnt make sense to let the user pick a value like 333 GB because it doesnt exist, it should instead jump to the nearest specified value so in this case it could be either 256 GB or 512 GB.

Describe the solution you'd like

It would be nice to have a feature where you could set valid steps and the slider will allow the user to select from those values only.
Here is a working example of it in MUI: https://mui.com/material-ui/react-slider/#restricted-values

Describe alternatives you've considered

I thought of using checkboxes but it can be overwhelming when there are too many values and its annoying when you want to select a range of values because you have to select all of the values in the range manually.

Screenshots or Videos

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions