use-hoverDetect if mouse is over given elementImportimport { useHover } from '@mantine/hooks';SourceView source codeDocsEdit this pagePackage@mantine/hooksUsagePut mouse over me pleaseimport { useHover } from '@mantine/hooks'; function 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 everAboutContributeAbout MantineChangelogReleasesCommunityChat on DiscordFollow on TwitterFollow on GitHubGitHub discussionsProjectMantine UIDocumentationGitHub organizationnpm organizationBuilt by Vitaly Rtishchev and these awesome peopleJoin Discord communityFollow Mantine on Twitter