1
0
Fork 1
mirror of https://github.com/SomboChea/ui synced 2024-06-26 05:04:49 +07:00
verdaccio-ui/src/muiComponents/Tooltip/Tooltip.tsx

12 lines
435 B
TypeScript
Raw Normal View History

import React, { forwardRef } from 'react';
2019-10-06 23:30:05 +07:00
import { default as MaterialUITooltip, TooltipProps } from '@material-ui/core/Tooltip';
// The default element type of MUI's Tooltip is 'div' and the change of this prop is not allowed
type TooltipRef = HTMLDivElement;
const Tooltip = forwardRef<TooltipRef, TooltipProps>(function ToolTip(props, ref) {
2019-10-06 23:30:05 +07:00
return <MaterialUITooltip {...props} innerRef={ref} />;
});
export default Tooltip;