F1Manager-Calc/components/Tooltip.tsx

11 lines
378 B
TypeScript
Raw Normal View History

2023-06-09 07:19:11 +02:00
import {styled, Tooltip, tooltipClasses, TooltipProps} from "@mui/material";
export const HtmlTooltip = styled(({ className, ...props }: TooltipProps) => (
<Tooltip {...props} classes={{ popper: className }} />
))(({ theme }) => ({
[`& .${tooltipClasses.tooltip}`]: {
maxWidth: 220,
fontSize: theme.typography.pxToRem(12),
border: '1px solid #dadde9',
},
}));