{"id":15313913,"url":"https://github.com/itsdouges/react-mouse-follow","last_synced_at":"2025-03-02T13:24:14.335Z","repository":{"id":71499360,"uuid":"87806598","full_name":"itsdouges/react-mouse-follow","owner":"itsdouges","description":"React Mouse Follow to make a react element follow the mouse.","archived":false,"fork":false,"pushed_at":"2017-05-07T13:09:58.000Z","size":65,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-23T14:38:31.703Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/itsdouges.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-10T12:10:42.000Z","updated_at":"2018-09-24T11:12:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"e782e6cc-8d5b-43e7-b5a9-2cf266797670","html_url":"https://github.com/itsdouges/react-mouse-follow","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"b05fde29051529664ae8dc857ca5c7d4d3ba31d9"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsdouges%2Freact-mouse-follow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsdouges%2Freact-mouse-follow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsdouges%2Freact-mouse-follow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsdouges%2Freact-mouse-follow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itsdouges","download_url":"https://codeload.github.com/itsdouges/react-mouse-follow/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241511217,"owners_count":19974375,"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":[],"created_at":"2024-10-01T08:43:40.771Z","updated_at":"2025-03-02T13:24:14.302Z","avatar_url":"https://github.com/itsdouges.png","language":"JavaScript","readme":"# [react-mouse-follow](https://github.com/madou/react-mouse-follow)\n\n[![NPM version](http://img.shields.io/npm/v/react-mouse-follow.svg?style=flat-square)](https://www.npmjs.com/package/react-mouse-follow)\n[![NPM downloads](http://img.shields.io/npm/dm/react-mouse-follow.svg?style=flat-square)](https://www.npmjs.com/package/react-mouse-follow)\n[![Build Status](http://img.shields.io/travis/madou/react-mouse-follow/master.svg?style=flat-square)](https://travis-ci.org/madou/react-mouse-follow)\n[![codecov](https://codecov.io/gh/madou/react-mouse-follow/branch/master/graph/badge.svg)](https://codecov.io/gh/madou/react-mouse-follow)\n[![Dependency Status](http://img.shields.io/david/madou/react-mouse-follow.svg?style=flat-square)](https://david-dm.org/madou/react-mouse-follow)\n\nQuick description of what it does!\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/madou/react-mouse-follow/blob/master/example.gif?raw=true\" style=\"margin:0 auto\" /\u003e\n\u003c/p\u003e\n\n## Installation\n\n```sh\nnpm install react-mouse-follow\n```\n\n## Usage\n\n```javascript\nimport 'react-mouse-follow/styles.css';\nimport ReactStickyHeader from 'react-mouse-follow';\nimport ReactDOM from 'react-dom';\n\nReactDOM.render(\n  \u003cReactStickyHeader\n    // This will be the sticky strip.\n    header={\n      \u003cdiv className={cx('Header_root', { sticky })}\u003e\n        \u003ch1 className=\"Header_title\"\u003eReactStickyHeader\u003c/h1\u003e\n\n        \u003cul className=\"Header_links\"\u003e\n          \u003cli className=\"Header_link\"\u003eWhen\u003c/li\u003e\n          \u003cli className=\"Header_link\"\u003eWhy\u003c/li\u003e\n          \u003cli className=\"Header_link\"\u003eAbout\u003c/li\u003e\n        \u003c/ul\u003e\n      \u003c/div\u003e\n    }\n  \u003e\n    \u003csection\u003e\n      // More header stuff here, this won't be sticky.\n    \u003c/section\u003e\n  \u003c/ReactStickyHeader\u003e,\n  document.getElementById('container')\n);\n```\n\n| prop | type | required |\n|-|-|-|\n| children | Children  | no |\n| header | Children | yes |\n| backgroundImage | string | no |\n| backgroundColor | string | no |\n| headerOnly | boolean | no |\n| onSticky | (boolean) =\u003e void | no |\n| className | string | no |\n\n### React Story Book\n\nTo run the component in various modes, run the following command then go to `http://localhost:6006/`.\n\n```bash\nnpm start\n```\n\n### Testing\n\n```bash\nnpm test\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsdouges%2Freact-mouse-follow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitsdouges%2Freact-mouse-follow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsdouges%2Freact-mouse-follow/lists"}