I am currently utilizing the switch component from MUI and I am looking to change the styling between two different colors.
<Switch
color={dataType === "expenses" ? "error" : "secondary"}
onChange={handleOnSwitch}
checked={dataType === "expenses"}
/>
I am having trouble identifying the specific props that need to be passed in order to customize the color of the off-switch state. The documentation only mentions props for the checked case, but I want to modify the switch color when it is unchecked to something other than the default gray.
Any assistance will be greatly appreciated.