[Slider] Support for marks #462
Labels
component: slider
This is the name of the generic UI component, not the React module!
new feature
New feature or request
waiting for 👍
Waiting for upvotes
Feature request
Summary
Introduce a new API consistent with component-per-node design to support rendering marks on the slider
Track
, as themarks
prop andMark
component/slot was removed in #216While it's quite simple to implement this (including "inverted track", demo) using
useSliderContext
, we have decided that all the hooks are private for nowIn the native
<input type='range' />
, we can do it by adding a and linking it with the id.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
The text was updated successfully, but these errors were encountered: