{"id":27120886,"url":"https://github.com/yst138451/vue-hoverable","last_synced_at":"2026-04-29T17:04:39.950Z","repository":{"id":42933209,"uuid":"237056150","full_name":"yst138451/vue-hoverable","owner":"yst138451","description":"@yst/vue-hoverable · Lightweight Vue utility for listening to mouse hover.","archived":false,"fork":false,"pushed_at":"2023-03-04T05:54:55.000Z","size":1463,"stargazers_count":1,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T19:05:22.274Z","etag":null,"topics":["hover","mouse-tracking","vue"],"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/yst138451.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":"2020-01-29T18:42:44.000Z","updated_at":"2021-10-25T07:17:16.000Z","dependencies_parsed_at":"2023-02-03T15:46:33.399Z","dependency_job_id":null,"html_url":"https://github.com/yst138451/vue-hoverable","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yst138451%2Fvue-hoverable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yst138451%2Fvue-hoverable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yst138451%2Fvue-hoverable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yst138451%2Fvue-hoverable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yst138451","download_url":"https://codeload.github.com/yst138451/vue-hoverable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247640263,"owners_count":20971549,"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":["hover","mouse-tracking","vue"],"created_at":"2025-04-07T10:40:05.157Z","updated_at":"2026-04-29T17:04:34.909Z","avatar_url":"https://github.com/yst138451.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vue-hoverable\nLightweight Vue utility for listening to mouse hover (`mouseenter` and `mouseleave`).\n\n## Installation\n\n#### NPM\n```bash\n$ npm install @yst/vue-hoverable\n```\n\n#### Yarn\n```bash\n$ yarn add @yst/vue-hoverable\n```\n\nImport and install it as plugin:\n\n```js\nimport Vue from 'vue';\nimport Hoverable from '@yst/vue-hoverable';\n\nVue.use(Hoverable);\n```\n\n## Options\n\n### Scoped slots\n\n#### `on.hover`  \n- type: `boolean`\n\nProvides an info of the current mouse state (\"entering\" or \"leaving\").\n\n\n## Usage\nIt doesn't wrap the target element/component with another one, because these mouse events are attached directly onto the target. So in the following case, the button will have mouse-hover and click handlers attached to it. \n\n```html\n\u003choverable #on=\"{ hover }\"\u003e\n  \u003cbutton \n    :style=\"{ backgroundColor: hover ? 'green' : 'blue' }\"\n    @click=\"handleClick\"\u003e\n    Click me\n  \u003c/button\u003e\n\u003c/hoverable\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyst138451%2Fvue-hoverable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyst138451%2Fvue-hoverable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyst138451%2Fvue-hoverable/lists"}