-
Notifications
You must be signed in to change notification settings - Fork 142
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
Can I use MUI Slider? #121
Comments
You could use this for the time being:
|
@jan-tee example looks good. Please re-open if you have any other questions |
Sorry for the late reply. Thanks for your answer. |
I'd suggest that a more robust variation of @jan-tee's solution would be eg this instead:
So basically "polyfilling" I ran into this with
|
requesting some context for implementationhow do I correctly implement @jan-tee 's answer? I am using formik-material-ui's codesandbox implementation below: here is a sandbox of attempted implementationhttps://codesandbox.io/s/nostalgic-water-xjjdt?file=/src/index.tsx
|
@CharlestonREM here is a working example - https://codesandbox.io/s/falling-darkness-qk3h2 You need to wrap the slider in a formik field <Field
component={Slider}
name="testSlider"
valueLabelFormat={valueLabelFormat}
getAriaValueText={valuetext}
aria-labelledby="discrete-slider-restrict"
step={null}
valueLabelDisplay="on"
marks={marks}
/> Also I would rely on formik for the default value |
THANK YOU!@cliedeman , thank you so much for your quick reply. I forked your sandbox and made these changes:
|
Hi,
I couldn't use MUI-Slider on Formik, so I was searching for a solution and arrived. Can I use Slider? Or do you have plans to use it?
Please refer to the link.
mui/material-ui#13485
https://material-ui.com/api/slider/
The text was updated successfully, but these errors were encountered: