{"id":16487604,"url":"https://github.com/saeris/vue-spinners","last_synced_at":"2025-04-04T17:07:18.128Z","repository":{"id":46810161,"uuid":"145092877","full_name":"Saeris/vue-spinners","owner":"Saeris","description":"💫 A collection of loading spinner components for Vuejs","archived":false,"fork":false,"pushed_at":"2021-09-24T07:31:20.000Z","size":6101,"stargazers_count":318,"open_issues_count":4,"forks_count":16,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-10-29T17:56:03.226Z","etag":null,"topics":["loader","loading-indicator","spinners","vue","vue-components","vuejs","vuejs-components"],"latest_commit_sha":null,"homepage":"https://vue-spinners.saeris.io/","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/Saeris.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}},"created_at":"2018-08-17T08:20:17.000Z","updated_at":"2024-10-13T08:13:08.000Z","dependencies_parsed_at":"2022-08-31T09:31:34.113Z","dependency_job_id":null,"html_url":"https://github.com/Saeris/vue-spinners","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/Saeris%2Fvue-spinners","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saeris%2Fvue-spinners/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saeris%2Fvue-spinners/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saeris%2Fvue-spinners/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Saeris","download_url":"https://codeload.github.com/Saeris/vue-spinners/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247217183,"owners_count":20903009,"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":["loader","loading-indicator","spinners","vue","vue-components","vuejs","vuejs-components"],"created_at":"2024-10-11T13:35:24.333Z","updated_at":"2025-04-04T17:07:18.109Z","avatar_url":"https://github.com/Saeris.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\" style=\"text-align: center;\"\u003eVue Spinners\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.org/package/@saeris/vue-spinners\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/@saeris/vue-spinners.svg?style=flat\" alt=\"npm\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://travis-ci.org/Saeris/vue-spinners\"\u003e\n    \u003cimg src=\"https://travis-ci.org/Saeris/vue-spinners.svg?branch=master\" alt=\"travis\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://codecov.io/gh/Saeris/vue-spinners\"\u003e\n    \u003cimg src=\"https://codecov.io/gh/Saeris/vue-spinners/branch/master/graph/badge.svg\" alt=\"codecov\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://snyk.io/test/github/Saeris/vue-spinners?targetFile=package.json\"\u003e\n    \u003cimg src=\"https://snyk.io/test/github/Saeris/vue-spinners/badge.svg?targetFile=package.json\" alt=\"Known Vulnerabilities\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://greenkeeper.io/\"\u003e\n    \u003cimg src=\"https://badges.greenkeeper.io/Saeris/vue-spinners.svg\" alt=\"Known Vulnerabilities\" alt=\"greenkeeper\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003eA Vue.js port of \u003ca href=\"https://github.com/davidhu2000/react-spinners\"\u003ereact-spinners\u003c/a\u003e.\u003c/p\u003e\n\n## 📦 Installation\n\n```bash\nnpm install --save @saeris/vue-spinners\n# or\nyarn add @saeris/vue-spinners\n```\n\n## 🔧 Usage\n\nThere are a number of ways you can use this library! Here are a few examples:\n\n**[Vue Plugin](https://vuejs.org/v2/guide/plugins.html#Using-a-Plugin)**\n```js\nimport Vue from 'vue'\nimport { VueSpinners } from '@saeris/vue-spinners'\n\nVue.use(VueSpinners)\n\n// Each spinner can now be used in your templates anywhere in the app!\n```\n\n**[Local Component Registration](https://vuejs.org/v2/guide/components-registration.html#Local-Registration)**\n```js\nimport { BarLoader } from '@saeris/vue-spinners'\n\nexport default {\n  components: {\n    BarLoader\n  },\n  // ...\n}\n```\n\n**[JSX Component](https://vuejs.org/v2/guide/render-function.html#JSX)**\n\n```js\nimport { BarLoader } from '@saeris/vue-spinners'\n\nexport default {\n  data: () =\u003e ({\n    loading: true\n  }),\n  render() {\n    return (\n      \u003cdiv class='loader'\u003e\n        \u003cClipLoader\n          class=\"custom-class\"\n          loading={this.loading}\n          color={'#bada55'}\n          size={150}\n          sizeUnit={\"px\"}\n        /\u003e\n      \u003c/div\u003e\n    )\n  }\n}\n```\n\n**[Unpkg Import](https://vuejs.org/v2/cookbook/packaging-sfc-for-npm.html#What-does-my-packaged-component-look-like)**\n```html\n\u003c!--Load libraries in your page's header--\u003e\n\u003cscript src=\"https://unpkg.com/vue\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://unpkg.com/@saeris/vue-spinners\"\u003e\u003c/script\u003e\n\n\u003c!--Use a component somewhere in your app--\u003e\n\u003cdiv id=\"app\"\u003e\n  \u003cbar-loader class=\"custom-class\" :color=\"#bada55\" :loading=\"loading\" :size=\"150\" :sizeUnit=\"px\"\u003e\u003c/bar-loader\u003e\n\u003c/div\u003e\n\n\u003cscript\u003e\n  new Vue({ el: '#app', data: { loading: true } })\n\u003c/script\u003e\n```\n\n## 📋 Available Loaders, PropTypes, and Default Values\n\nCommon default props for all loaders:\n\n```js\nloading: true\ncolor: '#000000'\n```\n\nFor `size`, `height`, and `width` props, there are `sizeUnit`, `heightUnit`, and `widthUnit` prop that accepts `px`, `%`, or `em`. The default for the unit prop is `px`.\n\nLoader                  | size:int | height:int | width:int | radius:int | margin:str\n-----------------------:|:--------:|:----------:|:---------:|:----------:|:---------:\nBarLoader               |          | `4`        | `100`     |            |\nBeatLoader              | `15`     |            |           |            | `2px`\nBounceLoader            | `60`     |            |           |            |\nCircleLoader            | `50`     |            |           |            |\nClimbingBoxLoader       | `15`     |            |           |            |\nClipLoader              | `35`     |            |           |            |\nDotLoader               | `60`     |            |           |            | `2px`\nFadeLoader              |          | `15`       | `5`       | `2`        | `2px`\nGridLoader              | `15`     |            |           |            |\nHashLoader              | `50`     |            |           |            | `2px`\nMoonLoader              | `60`     |            |           |            | `2px`\nPacmanLoader            | `25`     |            |           |            | `2px`\nPropagateLoader         | `15`     |            |           |            |\nPulseLoader             | `15`     |            |           |            | `2px`\nRingLoader              | `60`     |            |           |            | `2px`\nRiseLoader              | `15`     |            |           |            | `2px`\nRotateLoader            | `15`     |            |           |            | `2px`\nScaleLoader             |          | `35`       | `4`       | `2`        | `2px`\nSkewLoader              | `20`     |            |           |            |\nSquareLoader            | `50`     |            |           |            |\nSyncLoader              | `15`     |            |           |            | `2px`\n\n## 🏖️ Demo\n\nYou can either visit the [live demo site](https://vue-spinners.saeris.io), clone this repo and run the demo locally using `yarn start` and opening your browser to http://localhost:8080, or you can just play with it inside of CodeSandbox [here](https://codesandbox.io/s/github/Saeris/vue-spinners/tree/master/example).\n\n## ⚠️ Support Notice\n\nThis code is released as-is. It was originally built for use with Vue 2.x and as-such it is now very out of date. I do not plan to make continued updates to this package, so if you find it useful then I would highly recommend that you create a fork or copy-and-paste code to suit your own needs. The version of `emotion` that is uses is now very out of date and *will* cause problems when used in a modern codebase alongside another version of `emotion`. I am also unable to provide support or answer questions due to my lack of knowledge of Vuejs.\n\n## 📣 Acknowledgements\n\nThis library is a Vue port of [react-spinners](https://github.com/davidhu2000/react-spinners) by [David Hu](https://github.com/davidhu2000), who's library is based on [Halogen](https://github.com/yuanyan/halogen).\n\n## 🥂 License\n\nReleased under the [MIT license](https://github.com/Saeris/vue-spinners/blob/master/LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaeris%2Fvue-spinners","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaeris%2Fvue-spinners","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaeris%2Fvue-spinners/lists"}