79510140

Date: 2025-03-14 20:17:42
Score: 1.5
Natty:
Report link

I found the correct syntax using the sx property:

<ButtonSlider
    sx={{
        backgroundColor: dataSlider.buttonColor, 
        '&:hover':{
            backgroundColor:dataSlider.buttonHoverColor
        },
    }}
    variant="contained">
    {data.buttonText}
</ButtonSlider>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: binsworth