Material-ui: [Slider] Numeric value label on discrete slider

Created on 15 Nov 2016  路  6Comments  路  Source: mui-org/material-ui

Problem description

I figured out that it was possible to create a "discrete slider" with the 'min', 'max' and 'step' props but it seems not possible to display a numeric value label on it.

However the material specs specify it well here :
https://material.google.com/components/sliders.html#sliders-discrete-slider

Could this feature be integrated in a near future ?

Thanks !

Versions

  • Material-UI: ^0.16.0
  • React: ^15.0.0
  • Browser:
Slider duplicate

Most helpful comment

@llopez95 I put together this quick solution, may be helpful for you. Considering developing it further... https://github.com/tariqwest/material-ui-slider-label

All 6 comments

I'm closing this issue for #5383.

Could this feature be integrated in a near future?

I'm not aware that anyone is working on it.

@llopez95 I put together this quick solution, may be helpful for you. Considering developing it further... https://github.com/tariqwest/material-ui-slider-label

@tariqwest That looks really great! Would you be interested in migrating the Slider to the next branch?

Also, we could add a link toward that lib in our documentation. We already have quite a few libraries extending Material-UI.

@oliviertassinari Yeah! I would actually be interested in migrating Slider to Next branch. This library's been really useful to me and would be glad to contribute something back.

And yes please feel free to add link to my quick fix extension - I'm in process of making that extension less brittle and conform better to google design and behaviors.

@tariqwest Done with a0ab405cc5d4a101735defbc68ec1b80659a8230. We have the following issue #4793 to track the progress on the rewrite on the next branch.

Was this page helpful?
0 / 5 - 0 ratings