{"id":21425054,"url":"https://github.com/betterwrite/vue-providers","last_synced_at":"2026-05-20T03:32:19.502Z","repository":{"id":149288643,"uuid":"544464625","full_name":"betterwrite/vue-providers","owner":"betterwrite","description":"A simple collection of general-purpose directives for Vue 2/3.","archived":false,"fork":false,"pushed_at":"2022-10-02T18:41:51.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T07:23:08.734Z","etag":null,"topics":["directives","vue","vueuse"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/betterwrite.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-02T14:49:53.000Z","updated_at":"2022-10-03T02:22:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"c3475dfc-bd76-48da-972f-eb9f642e6e54","html_url":"https://github.com/betterwrite/vue-providers","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/betterwrite%2Fvue-providers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betterwrite%2Fvue-providers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betterwrite%2Fvue-providers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betterwrite%2Fvue-providers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/betterwrite","download_url":"https://codeload.github.com/betterwrite/vue-providers/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243933371,"owners_count":20370989,"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":["directives","vue","vueuse"],"created_at":"2024-11-22T21:26:34.254Z","updated_at":"2026-05-20T03:32:14.477Z","avatar_url":"https://github.com/betterwrite.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vue Providers\n\nA simple collection of general-purpose directives for Vue 2/3. Powered by [VueUse](https://vueuse.org/)\n\n\u003cimg src=\"https://img.shields.io/npm/v/vue-directive-providers?label=\u0026style=for-the-badge\" /\u003e\n\n## Install\n\n`yarn add vue-directive-providers`\n\n## Use\n\nin `src/main.(js|ts)`\n\n```js\nimport { createApp } from \"vue\";\nimport { ProviderPlugin } from \"vue-directive-providers\";\nimport App from \"./App.vue\";\n\nconst app = createApp(App);\n//...\napp.use(ProviderPlugin);\n//...\napp.mount(\"#app\");\n```\n\n## Directives\n\n- `v-provider-arrows`\n- `v-provider-close`\n- `v-provider-focus`\n- `v-provider-hover`\n- `v-provider-outside`\n- `v-provider-pressed`\n\n\u003cbr\u003e\n\n### v-provider-arrows\n\n```html\n\u003cinput\n  v-provider-arrows\n  :left=\"functionHere\"\n  :right=\"functionHere\"\n  :up=\"functionHere\"\n  :down=\"functionHere\"\n/\u003e\n```\n\n### v-provider-close\n\n```html\n\u003cdiv v-provider-close :esc=\"functionHere\" /\u003e\n```\n\n### v-provider-focus\n\n```html\n\u003cinput v-provider-focus :focused=\"functionHere\" :unfocused=\"functionHere\" /\u003e\n```\n\n### v-provider-hover\n\n```html\n\u003cdiv v-provider-hover :enter=\"functionHere\" :leave=\"functionHere\" /\u003e\n```\n\n### v-provider-outside\n\n```html\n\u003cdiv v-provider-outside :outside=\"functionHere\" /\u003e\n```\n\n### v-provider-pressed\n\n```html\n\u003cdiv v-provider-pressed :on=\"functionHere\" :off=\"functionHere\" /\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbetterwrite%2Fvue-providers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbetterwrite%2Fvue-providers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbetterwrite%2Fvue-providers/lists"}