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

[Feature]: Range slider with visual chart bars for values #68

Open
alamenai opened this issue Jun 15, 2024 · 2 comments
Open

[Feature]: Range slider with visual chart bars for values #68

alamenai opened this issue Jun 15, 2024 · 2 comments

Comments

@alamenai
Copy link

Hi @BelkacemYerfa ,

When I was working on a new feature, my CTO asked me if we can make the slider component as a range like this ( from Airbnb ):

Screenshot from 2024-06-15 14-19-11

I don't know if your next release will include this component or no.

I have already opened a new feature request in Shadcn project.

@BelkacemYerfa
Copy link
Owner

Hi @alamenai! Thanks for you suggestion.

There is 2 points are related to this component:

  • First is that we have already set the component that will be added in the next release, so with that it is not going to be supported in the next release.
  • Second as far as i see this component is very customisable for a very set of users, and since we're trying to make component that can be used globally, I don't see the benefit of having a component that is very custom for specific users.

Other than that i think it can be done using the Slider from shadcn-ui, check those docs, if you have more control of it you can head to the radix primitive to check it out here.

Other than that gonna talk to @gaurangrshah about this also and we can also hear his thoughts about it.

@gaurangrshah
Copy link
Collaborator

gaurangrshah commented Jun 15, 2024

I like the idea, not sure if it's something we'll be including, but to get a better idea... @alamenai can you explain what type of data you're trying to visualize? Maybe if there is some universal utility to it we can create a more generalized version.

We do have a discussion topic open in our roadmap for charting solutions, but that was before shadcn-ui added recharts. If we do build charting components they will also use recharts to ensure our users don't have to use 2 different libraries for the same solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants