P粉6701076612023-09-05 10:53:39
You can use sx
to solve this problem.
Now I found that using it directly on the Tooltip
doesn't work, but you can use slotProps
to pass it to the actual tooltip
element property.
return ( <Tooltip title={<Typography fontSize={15}>{tip}</Typography>} arrow placement="right" sx={{ fontSize: "30" }} slotProps={{ tooltip: { sx: { color: "#514E6A", backgroundColor: "#ffff", }, }, }} > <IconButton> <HelpOutlineIcon /> </IconButton> </Tooltip> );