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

[feat]: Slider Component To Represent Numerical Data #840

Open
PaulBratslavsky opened this issue Jan 12, 2023 · 4 comments
Open

[feat]: Slider Component To Represent Numerical Data #840

PaulBratslavsky opened this issue Jan 12, 2023 · 4 comments
Labels
issue: enhancement Issue suggesting an enhancement to an existing feature source: design-system relates to design-system package

Comments

@PaulBratslavsky
Copy link

PaulBratslavsky commented Jan 12, 2023

Slider Component to represent and select numerical data in a range.

Screenshot 2023-01-12 at 10 55 32 AM

A slider input component allows user to select a value from a range of values by moving a handle along a track. The component typically consists of three parts: the track, the handle, and the value display.

The track is the visual representation of the range of values, and it is usually represented by a horizontal or vertical bar. The handle is a small, draggable element that the user can move along the track to select a value. The value display is an optional element that shows the current value of the slider.

When the user moves the handle along the track, the value of the slider input component changes. The component will emit an event or callback that can be used to update the state of the application.

Slider Input component also has a wide range of customization options, such as the ability to set the minimum and maximum values, the increment of the value change, and display options like ticks, labels and different colors.

It is a great way to give users more control over their experience and to make it easy for them to make adjustments.

Why should this feature be included?

Many community members who work on plugins have mention this.

@PaulBratslavsky PaulBratslavsky added the issue: enhancement Issue suggesting an enhancement to an existing feature label Jan 12, 2023
@joshuaellis
Copy link
Contributor

Firstly, thanks Paul for raising this!!

Many community members who work on plugins have mention this.

Secondly, whilst they may have mentioned this it'd be great to understand their use cases for it so we can understand the significance, there's quite a lot to making this component and currently I can't quite see why you'd need a range in a CMS (although i'm probably wrong). Feel free to tag those individuals here!

@PaulBratslavsky
Copy link
Author

@joshuaellis I am currently building a plugin to use open AI to generate seo descriptions and key words and would like to give users the ability to change setting via slider. Similar to this.

It is recommended to use Strapi Design System Components when building plugins but currently there is no slider component.

I can of course make my own, but if someone else needs a slider and they build there own it will start to add inconsistencies in design.

Screenshot 2023-01-12 at 11 20 14 AM

I am sure there might be other use cases if we had a custom field slider component that other people would use.

@joshuaellis
Copy link
Contributor

Thanks!

@joshuaellis joshuaellis added the source: design-system relates to design-system package label May 7, 2024
@pedromarcos11
Copy link

Hello, from Brazil. Any news about the slider ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue: enhancement Issue suggesting an enhancement to an existing feature source: design-system relates to design-system package
Projects
None yet
Development

No branches or pull requests

3 participants