use-hoverDetect if mouse is over given elementImportimport { useHover } from '@mantine/hooks';SourceView source codeDocsEdit this pagePackage@mantine/hooksUsagePut mouse over me pleasefunction Demo() { const { hovered, ref } = useHover(); return ( <div ref={ref}> {hovered ? 'I am hovered' : 'Put mouse over me please'} </div> );}Definitionfunction useHover<T extends HTMLElement = HTMLDivElement>(): { ref: React.MutableRefObject<T>; hovered: boolean;};Go backuse-hotkeys – @mantine/hooksUp nextuse-intersection – @mantine/hooksTable of contentsUsageDefinitionBuild fully functional accessible web applications faster than everProjectContribute to MantineMedia assetsChangelogReleasesCommunityJoin Discord communityFollow on TwitterEmail newsletterGitHub discussionsFeedbackYour feedback is most valuable contribution to the project, please share how you use Mantine, what features are missing and what is done goodLeave feedbackBuilt by Vitaly Rtishchev and these awesome peopleJoin Discord communityFollow Mantine on Twitter