UNPKG

mui-tw-components

Version:

````markdown # **mui-tw-components - Reusable UI Components**

22 lines (21 loc) 777 B
import { TooltipProps } from '@mui/material'; import React from 'react'; /** * CustomTooltip Component * * A reusable Tooltip component that can be customized with different icons and content. * The tooltip displays additional information when hovering over the icon. * * Author: * Email: * * @param {string} title - The text or content to display in the tooltip. * @param {React.ReactElement} icon - The icon or element to display with the tooltip, default is InfoRegular icon. * @param {TooltipProps} [tooltipProps] - Optional props to customize the Tooltip behavior. */ interface CustomTooltipProps extends TooltipProps { title: string; icon: React.ReactElement; } declare const CustomTooltip: React.FC<CustomTooltipProps>; export default CustomTooltip;