Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Slider] Support markers/indicators along the track #1229

Closed
thevipinmishra opened this issue Dec 25, 2024 · 1 comment
Closed

[Slider] Support markers/indicators along the track #1229

thevipinmishra opened this issue Dec 25, 2024 · 1 comment
Labels
component: slider This is the name of the generic UI component, not the React module!

Comments

@thevipinmishra
Copy link

thevipinmishra commented Dec 25, 2024

Feature request

Summary

Sometimes we do want to indicate or highlight some predetermined values that can be chosen along the track. In the native <input type='range' />, we can do it by adding a and linking it with the id.

<input type="range" min="-100" max="100" value="0" step="10" name="power" list="powers">
<datalist id="powers">
   <option value="0">
   <option value="-30">
   <option value="30">
   <option value="++50">
</datalist>

The Slider should also snap to the closest marker/indicator.

Examples in other libraries

MUI - https://mui.com/material-ui/react-slider/#discrete-sliders

Mantine - https://mantine.dev/core/slider/#marks

ARK UI - https://ark-ui.com/react/docs/components/slider#adding-marks

Chakra UI - https://www.chakra-ui.com/docs/components/slider#marks

@github-actions github-actions bot added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Dec 25, 2024
@aarongarciah aarongarciah changed the title [Slider] Discrete Slider - ability to add markers/indicators along the track [Slider] Support markers/indicators along the track Dec 25, 2024
@aarongarciah
Copy link
Member

@thevipinmishra I just saw #462 already exists. I've added the additional info you provided on this issue but I'll go ahead and close this one.

@aarongarciah aarongarciah closed this as not planned Won't fix, can't repro, duplicate, stale Dec 25, 2024
@zannager zannager added component: slider This is the name of the generic UI component, not the React module! and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: slider This is the name of the generic UI component, not the React module!
Projects
None yet
Development

No branches or pull requests

3 participants