{"id":19444208,"url":"https://github.com/pxyup/vue-not-visible","last_synced_at":"2025-04-25T00:32:58.916Z","repository":{"id":57396488,"uuid":"143918923","full_name":"PxyUp/vue-not-visible","owner":"PxyUp","description":"Vue directive for conditional rendering element on screen smaller than breakpoints","archived":false,"fork":false,"pushed_at":"2024-01-17T22:40:56.000Z","size":68,"stargazers_count":23,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-21T19:03:43.405Z","etag":null,"topics":["directives","vue","vue-directive","vuejs"],"latest_commit_sha":null,"homepage":"https://pxyup.github.io/vue-not-visible/index.html","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/PxyUp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-08-07T19:37:54.000Z","updated_at":"2024-01-17T22:41:00.000Z","dependencies_parsed_at":"2024-01-29T09:19:31.342Z","dependency_job_id":"a029c911-835b-458f-b1ce-d486b01e6fe9","html_url":"https://github.com/PxyUp/vue-not-visible","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PxyUp%2Fvue-not-visible","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PxyUp%2Fvue-not-visible/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PxyUp%2Fvue-not-visible/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PxyUp%2Fvue-not-visible/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PxyUp","download_url":"https://codeload.github.com/PxyUp/vue-not-visible/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250733598,"owners_count":21478399,"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","vue-directive","vuejs"],"created_at":"2024-11-10T16:05:33.029Z","updated_at":"2025-04-25T00:32:58.651Z","avatar_url":"https://github.com/PxyUp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vue-not-visible\n\nVue directive for conditional rendering (like v-if) element on screen smaller than breakpoints;\n\n[![NPM](https://nodei.co/npm/vue-not-visible.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://nodei.co/npm/vue-not-visible/)\n\n\n📺 [Demo](https://pxyup.github.io/vue-not-visible/index.html)\n\n## Install\n\n```bash\n$ npm install --save vue-not-visible\n```\n\n```bash\n$ yarn add vue-not-visible\n```\n\n\n## Use default\n\n```js\nimport Vue from 'vue'\nimport vueNotVisible from 'vue-not-visible'\n\n/* const BREAKPOINTS = {\n    mobile: 425,\n    tablet: 768,\n    tablet_landscape: 1024,\n    desktop: 1200,\n    desktop_large: 1440,\n    hd: 1920,\n}\n*/\nVue.use(vueNotVisible) // this is default\n\n```\n\n```html\n\u003ctemplate\u003e\n  \u003cdiv id=\"test\"\u003e\n        {{ message }} {{ count }}\n        \u003cdiv v-not-visible=\"'tablet'\"\u003e \n            \u003cdiv v-on:click=\"count = count + 1\"\u003eNot visible on table(screen \u003c 768)\u003c/div\u003e\n        \u003c/div\u003e\n        \u003cdiv v-not-visible=\"'mobile'\"\u003e\n            \u003cdiv v-on:click=\"count = count + 1\"\u003eNot visible on mobile(screen \u003c 425)\u003c/div\u003e\n        \u003c/div\u003e\n    \u003c/div\u003e\n\u003c/template\u003e\n```\n\n## Use custom breakpoints\n\n```js\nimport Vue from 'vue'\nimport vueNotVisible from 'vue-not-visible'\n\nVue.use(vueNotVisible, {ipad: 1280}) // this is custom\n\n```\n\n```html\n\u003ctemplate\u003e\n  \u003cdiv id=\"test\"\u003e\n        {{ message }} {{ count }}\n        \u003cdiv v-not-visible=\"'ipad'\"\u003e \n            \u003cdiv v-on:click=\"count = count + 1\"\u003eNot visible on ipad(screen \u003c 1280)\u003c/div\u003e\n        \u003c/div\u003e\n    \u003c/div\u003e\n\u003c/template\u003e\n```\n\n## License\n[MIT License](https://github.com/PxyUp/vue-not-visible/blob/master/LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpxyup%2Fvue-not-visible","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpxyup%2Fvue-not-visible","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpxyup%2Fvue-not-visible/lists"}