Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

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

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

Already on GitHub? # to your account

Add option "end" to the slider's origin property next to "start" and "center" #2236

Closed
danieledler opened this issue Feb 15, 2025 · 0 comments · May be fixed by #2237
Closed

Add option "end" to the slider's origin property next to "start" and "center" #2236

danieledler opened this issue Feb 15, 2025 · 0 comments · May be fixed by #2237

Comments

@danieledler
Copy link

🚀 Feature request

Add option "end" to the slider's origin property, next to the options "start" and "center".

🧱 Problem Statement / Justification

The origin property of the slider sets the start position of the filled part of the track. The current options are "start" (default) and "center". However, I'm missing the option "end".

The "end" option would be useful when the value represents an offset from the end.

For example, if the slider is used to set a threshold value between 0 to 100 to include values above it, it makes more sense to have the values above the thumb highlighted with a filled track instead of the values below it.

✅ Proposed solution or API

I have a solution here and will make a pull request.

↩️ Alternatives

I considered using the support for right-to-left direction (dir="rtl") but I needed to wrap the slider in a locale with right-to-left direction which also has side-effects on labels.

@chakra-ui chakra-ui locked and limited conversation to collaborators Feb 24, 2025
@segunadebayo segunadebayo converted this issue into discussion #2280 Feb 24, 2025

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant