mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 00:39:50 +03:00
18 lines
556 B
TypeScript
18 lines
556 B
TypeScript
import { Tooltip, type TooltipProps, styled, tooltipClasses } from '@mui/material';
|
|
|
|
export const ButtonTooltip = styled(({ className, ...props }: TooltipProps) => (
|
|
<Tooltip {...props} placement="top" arrow classes={{ popper: className }} />
|
|
))(({ theme }) => ({
|
|
[`& .${tooltipClasses.arrow}`]: {
|
|
color: theme.palette.success.main
|
|
},
|
|
[`& .${tooltipClasses.tooltip}`]: {
|
|
backgroundColor: theme.palette.success.main,
|
|
color: 'rgba(0, 0, 0, 0.87)',
|
|
boxShadow: theme.shadows[1],
|
|
fontSize: 10
|
|
}
|
|
}));
|
|
|
|
export default ButtonTooltip;
|