/** * Hook to detect if text content is overflowing its container * Useful for conditionally showing tooltips or truncation indicators * * @returns Object containing ref to attach to element and overflow state * * @example * function Component() { * const { textRef, isOverflowing } = useTextOverflow(); * return ( *