UNPKG

phx-react

Version:

PHX REACT

17 lines (16 loc) 651 B
import React, { ReactNode } from 'react'; interface TruncatedTooltipProps { children: ReactNode; className?: string; content?: ReactNode; } /** * Renders plain truncated text, and wraps it with PHXTooltip only when the text overflows. * * @param children - Text content to render and measure. * @param className - Optional class names for the measured text element. * @param content - Optional custom tooltip content. * @returns Text content with tooltip behavior only when truncated. */ declare function TruncatedTooltip({ children, className, content }: TruncatedTooltipProps): React.JSX.Element; export default TruncatedTooltip;