{"id":13701428,"url":"https://github.com/michalsnik/vue-content-placeholders","last_synced_at":"2025-04-10T04:53:26.540Z","repository":{"id":25716268,"uuid":"106324986","full_name":"michalsnik/vue-content-placeholders","owner":"michalsnik","description":"Composable components for rendering fake (progressive) content like facebook in vue","archived":false,"fork":false,"pushed_at":"2024-08-19T20:32:31.000Z","size":11,"stargazers_count":1586,"open_issues_count":13,"forks_count":88,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-04-03T02:53:14.095Z","etag":null,"topics":["fake-content","lazy-loading","loader","progressive-rendering","skeleton","vue","vue-components"],"latest_commit_sha":null,"homepage":null,"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/michalsnik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-10-09T19:13:54.000Z","updated_at":"2025-03-15T20:58:50.000Z","dependencies_parsed_at":"2024-10-14T01:16:10.206Z","dependency_job_id":null,"html_url":"https://github.com/michalsnik/vue-content-placeholders","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"6c3b6eb11f143600aeec2de6c2b484e9898ede43"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalsnik%2Fvue-content-placeholders","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalsnik%2Fvue-content-placeholders/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalsnik%2Fvue-content-placeholders/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalsnik%2Fvue-content-placeholders/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michalsnik","download_url":"https://codeload.github.com/michalsnik/vue-content-placeholders/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247674190,"owners_count":20977264,"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":["fake-content","lazy-loading","loader","progressive-rendering","skeleton","vue","vue-components"],"created_at":"2024-08-02T20:01:37.206Z","updated_at":"2025-04-10T04:53:26.518Z","avatar_url":"https://github.com/michalsnik.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","UI组件","Components \u0026 Libraries","UI Components [🔝](#readme)","UI Components","Vue"],"sub_categories":["杂","UI Components","Miscellaneous"],"readme":"# vue-content-placeholders\n\n![npm](https://img.shields.io/npm/v/vue-content-placeholders.svg)\n[![vue2](https://img.shields.io/badge/vue-2.x-brightgreen.svg)](https://vuejs.org/)\n\n\u003e Vue addon for rendering fake content while data is fetching to provide better UX and lower bounce rate.\n\n![example](https://i.imgur.com/JQlFjsS.gif)\n\n---\n\n## :cd: Installation\n\n* via npm: `npm install vue-content-placeholders --save`\n* via yarn: `yarn add vue-content-placeholders`\n\n## :rocket: Usage\n\nInclude plugin in your `main.js` file.\n\n```javascript\nimport Vue from 'vue'\nimport VueContentPlaceholders from 'vue-content-placeholders'\n\nVue.use(VueContentPlaceholders)\n```\n\n\u003e ⚠️ A css file is included when importing the package. You may have to setup your bundler to embed the css in your page.\n\n### Examples:\n\n```html\n\u003ccontent-placeholders\u003e\n  \u003ccontent-placeholders-heading :img=\"true\" /\u003e\n  \u003ccontent-placeholders-text :lines=\"3\" /\u003e\n\u003c/content-placeholders\u003e\n```\n\n![rendered example](https://i.imgur.com/LWfqxUe.png)\n\n```html\n\u003ccontent-placeholders :rounded=\"true\"\u003e\n  \u003ccontent-placeholders-img /\u003e\n  \u003ccontent-placeholders-heading /\u003e\n\u003c/content-placeholders\u003e\n```\n\n![rendered example](https://i.imgur.com/NBb6ZB7.png)\n\n### Available components and properties\n\n* root `\u003ccontent-placeholders\u003e`\n  * Boolean `animated` (default: true)\n  * Boolean `rounded` (default: false) - border radius\n  * Boolean `centered` (default: false)\n  \u003e these properties define how all children components will act\n\n\n* `\u003ccontent-placeholders-heading /\u003e`\n  * Boolean `img` (default: false)\n\n\n* `\u003ccontent-placeholders-text /\u003e`\n  * Number `lines` (default: 4)\n\n\n* `\u003ccontent-placeholders-img /\u003e`\n\n---\n\n## 🔓 License\n\nSee the [LICENSE](LICENSE.md) file for license rights and limitations (MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichalsnik%2Fvue-content-placeholders","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichalsnik%2Fvue-content-placeholders","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichalsnik%2Fvue-content-placeholders/lists"}