add slotprops prop to tooltip

This commit is contained in:
Alex Holliday committed 2026-05-26 14:54:54 -07:00
1 parent d18a53eec2
commit 806c7764b1
1 file changed
+6 -1
@@ -6,7 +6,11 @@ import type { TooltipProps } from "@mui/material/Tooltip";
type StyledTooltipProps = TooltipProps; type StyledTooltipProps = TooltipProps;
export const Tooltip = ({ placement = "top", ...props }: StyledTooltipProps) => { export const Tooltip = ({
placement = "top",
slotProps,
...props
}: StyledTooltipProps) => {
const theme = useTheme(); const theme = useTheme();
return ( return (
@@ -27,6 +31,7 @@ export const Tooltip = ({ placement = "top", ...props }: StyledTooltipProps) =>
boxShadow: theme.shadows[6], boxShadow: theme.shadows[6],
}, },
}, },
...slotProps,
}} }}
> >
{props.children} {props.children}