{"id":13809829,"url":"https://github.com/gVguy/vue-follow-tooltip","last_synced_at":"2025-05-14T10:31:05.431Z","repository":{"id":57148666,"uuid":"417779502","full_name":"gVguy/vue-follow-tooltip","owner":"gVguy","description":"Tiny tooltip directive for vue 3","archived":false,"fork":false,"pushed_at":"2021-10-17T10:10:17.000Z","size":1744,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-22T22:07:32.681Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gVguy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-16T09:28:16.000Z","updated_at":"2023-05-08T00:09:59.000Z","dependencies_parsed_at":"2022-08-31T20:02:09.277Z","dependency_job_id":null,"html_url":"https://github.com/gVguy/vue-follow-tooltip","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gVguy%2Fvue-follow-tooltip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gVguy%2Fvue-follow-tooltip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gVguy%2Fvue-follow-tooltip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gVguy%2Fvue-follow-tooltip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gVguy","download_url":"https://codeload.github.com/gVguy/vue-follow-tooltip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254120624,"owners_count":22018024,"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-08-04T02:00:37.036Z","updated_at":"2025-05-14T10:31:05.009Z","avatar_url":"https://github.com/gVguy.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","Components \u0026 Libraries"],"sub_categories":["UI Components"],"readme":"# vue-follow-tooltip\n\nTiny tooltip directive for Vue 3\n\nLets you create tooltips that follow cursor\n\n\u003cp align=\"center\"\u003e\n    🚀\u0026nbsp;\u0026nbsp;\u003cb\u003e\u003ca href=\"https://gvguy.github.io/vue-follow-tooltip/\"\u003eLive demo\u003c/a\u003e\u003c/b\u003e\u0026nbsp;\u0026nbsp;🚀\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://codepen.io/vanechka222/pen/mdMVLNR\"\u003eCodepen\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://media.giphy.com/media/BNS0LgRIyHnN4xARHw/source.gif\"\u003e\n\u003c/p\u003e\n\n## Why\n\n### Simple\n\nNo dependencies. No under-the-hood libraries. Just a couple of Vanilla JS objects\n\n### Customizable\n\nThere are a few things you can customize with options\n\nNo need to override default styles, because there aren't any. Just add your CSS as usual\n\n\u003e More about [styles](#styles)\n\n\u003e More about [options](#options)\n\n## Installation\n\n### NPM\n\n```\nnpm i vue-follow-tooltip\n```\n\n```javascript\nimport Tooltip from 'vue-follow-tooltip'\n```\n\n### CDN\n\n```xml\n\u003cscript src=\"https://unpkg.com/vue-follow-tooltip@latest\"\u003e\u003c/script\u003e\n```\n\n## Usage\n\n```javascript\n// install it with use()\n\napp.use(Tooltip)\n\n// OR register the directive manually\n\napp.directive('tooltip', Tooltip)\n```\n\n```xml\n\u003cbutton v-tooltip=\"'Look! It\\'s a button, let\\'s push it!\"\u003eDON'T PUSH\u003c/button\u003e\n```\n\n## Options\n\nYou can pass options like this:\n\n```javascript\napp.use(Tooltip, {\n   delay: 500,\n   center: true,\n   offsetX: 0,\n   offsetY: 20\n})\n```\n\nThe values in the example are the default values\n\nProperty names are pretty self-explanatory\n\n## Styles\n\nThe tooltip gets a class `.tooltip`\n\nUse it to apply styles to it like this:\n\n```css\n.tooltip {\n   background: rgba(1, 1, 1, 0.7);\n   padding: 10px;\n   border-radius: 3px;\n   color: #fbfbfb;\n   font-family: sans-serif;\n   transition: opacity 0.3s;\n}\n```\n\n### Styling guidelines\n\n-  There are no default styles, however, if you specify `top`, `left`, `opacity` \u0026 `position` they will have no effect\n-  Dont use `transition: all ..`, it will mess with how the tooltip follows the cursor\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FgVguy%2Fvue-follow-tooltip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FgVguy%2Fvue-follow-tooltip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FgVguy%2Fvue-follow-tooltip/lists"}