{"id":26768614,"url":"https://github.com/marlo22/react-sticky-mouse-tooltip","last_synced_at":"2025-06-22T08:35:09.411Z","repository":{"id":48021599,"uuid":"174811769","full_name":"marlo22/react-sticky-mouse-tooltip","owner":"marlo22","description":"React tooltip component that follow mouse cursor.","archived":false,"fork":false,"pushed_at":"2022-12-03T01:31:16.000Z","size":496,"stargazers_count":21,"open_issues_count":4,"forks_count":10,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-25T04:48:11.237Z","etag":null,"topics":["component","cursor","fixed","follow","mouse","popover","react","sticky","tooltip"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marlo22.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-10T11:04:27.000Z","updated_at":"2024-04-27T14:00:59.000Z","dependencies_parsed_at":"2023-01-23T08:46:12.739Z","dependency_job_id":null,"html_url":"https://github.com/marlo22/react-sticky-mouse-tooltip","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/marlo22/react-sticky-mouse-tooltip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marlo22%2Freact-sticky-mouse-tooltip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marlo22%2Freact-sticky-mouse-tooltip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marlo22%2Freact-sticky-mouse-tooltip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marlo22%2Freact-sticky-mouse-tooltip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marlo22","download_url":"https://codeload.github.com/marlo22/react-sticky-mouse-tooltip/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marlo22%2Freact-sticky-mouse-tooltip/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261263126,"owners_count":23132548,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["component","cursor","fixed","follow","mouse","popover","react","sticky","tooltip"],"created_at":"2025-03-28T21:34:37.735Z","updated_at":"2025-06-22T08:35:04.398Z","avatar_url":"https://github.com/marlo22.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-sticky-mouse-tooltip\nReact tooltip component that follow mouse cursor. You can pass as children any HTML element or other React component.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"preview.gif\" alt=\"Component functionality preview\"\u003e\n\u003c/p\u003e\n\n## Installation\n`npm install react-sticky-mouse-tooltip --save`\n\nor\n\n`yarn add react-sticky-mouse-tooltip`\n\n## Example\n```js\nimport React from 'react';\nimport MouseTooltip from 'react-sticky-mouse-tooltip';\n\nclass Preview extends React.Component {\n  state = {\n    isMouseTooltipVisible: false,\n  };\n\n  toggleMouseTooltip = () =\u003e {\n    this.setState(prevState =\u003e ({ isMouseTooltipVisible: !prevState.isMouseTooltipVisible }));\n  };\n\n  render() {\n    return (\n      \u003cdiv\u003e\n        \u003cbutton onClick={this.toggleMouseTooltip} style={buttonStyle}\u003e\n          Toggle mouse tooltip\n        \u003c/button\u003e\n        \u003cMouseTooltip\n          visible={this.state.isMouseTooltipVisible}\n          offsetX={15}\n          offsetY={10}\n        \u003e\n          \u003cspan\u003eFollow the cursor!\u003c/span\u003e\n        \u003c/MouseTooltip\u003e\n      \u003c/div\u003e\n    );\n  }\n}\n```\n\n## Attributes\n| Attribute | Description | Type | Required | Default value |\n| --- | --- | --- | --- | --- |\n| visible | Visibility of component. | ```boolean``` | No | ```true``` |\n| offsetX | Offset along X axis. | ```number``` | No | ```0``` |\n| offsetY | Offset along Y axis. | ```number``` | No | ```0``` |\n| className | Tooltip ```div``` class name. | ```string``` | No | - |\n| style | Styles properties of tooltip ```div```. | ```object``` | No | - |\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarlo22%2Freact-sticky-mouse-tooltip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarlo22%2Freact-sticky-mouse-tooltip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarlo22%2Freact-sticky-mouse-tooltip/lists"}