react-component / react-component/slider
Possible to have marks that behave as a sort of “snap to”?
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 3.1k
- Forks
- 768
- Avg merge
- 11d 22h
- Merged PRs (30d)
- 5
Description
I’ve been fussing with settings for a while and haven’t been able to create quite what I’m looking for.
My slider has a min/max of -10 to 50. The default value is 0 and the step is 0.5. I’m hoping to have a mark (or something) at 0, and ideally the handle would “snap” to it when the handle is near.
The slider looks like this, if that helps at all.

Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the slider's existing handling of marks, min/max values, and step increments, then reproduce the -10 to 50 example with a mark at 0. Done should mean the handle snaps to the mark when moved near it, while preserving the documented slider behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100