[material-ui][Slider] Error when passing different than primary and secondary colors #38945
Closed
2 tasks done
Labels
bug 🐛
Something doesn't work
component: slider
This is the name of the generic UI component, not the React module!
package: material-ui
Specific to @mui/material
typescript
Duplicates
Latest version
Steps to reproduce 🕹
Link to live example: https://codesandbox.io/s/quizzical-wiles-25378f
Current behavior 😯
The color slider component support only two colors which is primary and secondary but if I pass any other color like error or success, the slider's color gets updated but it gives a type error.
I am getting the following type error:
Expected behavior 🤔
The slider component should support all the colors (error, warning, success, info) without giving any type errors.
Context 🔦
No response
Your environment 🌎
npx @mui/envinfo
The text was updated successfully, but these errors were encountered: