UNPKG

rc-tc-ifn

Version:

React component that truncates text with ellipsis and shows tooltip only when content overflows.

11 lines (10 loc) 455 B
import { TooltipProps } from "react-tooltip-z"; type OmitProps = "trigger" | "open"; export interface TooltipIfnProps extends Omit<TooltipProps, OmitProps> { width?: string | number; wrapperWidth?: string | number; tagTruncate?: string; truncateClassName?: string; } declare function TooltipIfn({ children, content, width, wrapperWidth, tagTruncate, truncateClassName, ...props }: TooltipIfnProps): JSX.Element; export default TooltipIfn;