vue-spinners-css
Advanced tools
Comparing version 0.0.7 to 1.0.0
{ | ||
"name": "vue-spinners-css", | ||
"version": "0.0.7", | ||
"version": "1.0.0", | ||
"private": false, | ||
@@ -16,3 +16,3 @@ "repository": { | ||
"bugs": "https://github.com/JoshK2/vue-spinners-css/issues", | ||
"homepage": "https://github.com/JoshK2/vue-spinners-css", | ||
"homepage": "https://bit.dev/joshk/vue-spinners-css", | ||
"keywords": [ | ||
@@ -71,3 +71,6 @@ "vue-spinners", | ||
"packageManager": "npm" | ||
}, | ||
"dependencies": { | ||
"@bit/bit.envs.bundlers.vue": "file:./components/bundlers/vue" | ||
} | ||
} |
129
README.md
@@ -1,3 +0,128 @@ | ||
# vue-spinners-css | ||
# Vue Spinners CSS Loaders ([React](https://github.com/JoshK2/react-spinners-css), [Angular](https://github.com/JoshK2/ng-spinners)) | ||
[![bit components](https://img.shields.io/badge/dynamic/json.svg?color=6e3991&label=bit%20components&query=payload.totalComponents&url=https%3A%2F%2Fapi.bit.dev%2Fscope%2Fjoshk%2Fvue-spinners-css)](https://bit.dev/joshk/vue-spinners-css) | ||
[![npm version](https://badge.fury.io/js/vue-spinners-css.svg)](https://www.npmjs.com/package/vue-spinners-css) | ||
[![GitHub stars](https://img.shields.io/github/stars/joshk2/vue-spinners-css)](https://github.com/JoshK2/vue-spinners-css/stargazers) | ||
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/JoshK2/vue-spinners-css/master/LICENSE) | ||
[![Twitter Follow](https://img.shields.io/twitter/follow/joshkuttler)](https://twitter.com/JoshKuttler) | ||
Under developement! | ||
Amazing collection of pure CSS vue spinners components of css spinners for ajax or loading animation based on loading.io. | ||
[Install components and live demo](https://bit.dev/joshk/vue-spinners-css) | ||
<p align="center"> | ||
<a href="https://bit.dev/joshk/vue-spinners-css"><img src="https://i.imagesup.co/images2/010e655fd10abc5621d067f8b8ad33c7cac7d840.gif"></a> | ||
</p> | ||
## 🚀 List of Spinners - PropTypes and Default Props | ||
Each component accepts a `color` prop, and `loading` prop. | ||
The default `color` prop is `#7f58af`. | ||
The default `loading` prop is `true`. | ||
| Spinner | color: string | loading: boolean | | ||
| ---------------- | ------------ | ------------- | | ||
| Circle Spinner | `#7f58af` | `true` | | ||
| Default Spinner | `#7f58af` | `true` | | ||
| DualRing Spinner | `#7f58af` | `true` | | ||
| Ellipsis Spinner | `#7f58af` | `true` | | ||
| Facebook Spinner | `#7f58af` | `true` | | ||
| Grid Spinner | `#7f58af` | `true` | | ||
| Heart Spinner | `#7f58af` | `true` | | ||
| Hourglass Spinner| `#7f58af` | `true` | | ||
| Ring Spinner | `#7f58af` | `true` | | ||
| Ripple Spinner | `#7f58af` | `true` | | ||
| Roller Spinner | `#7f58af` | `true` | | ||
| Spinner Spinner | `#7f58af` | `true` | | ||
## 📦 Installation | ||
### Using [npm](https://www.npmjs.com/package/vue-spinners-css) to install vue-spinners-css: | ||
```bash | ||
$ npm i --save vue-spinners-css | ||
``` | ||
### Play and install vue spinners with Bit | ||
Install specific vue spinner component with bit, npm or yarn without having to install the whole project. | ||
Using [bit](https://bit.dev/joshk/vue-spinners-css) to play with live demo, and try the spinners before install. | ||
set npm regisetry config(one time action): | ||
```bash | ||
npm config set '@bit:registry' https://node.bit.dev | ||
``` | ||
and use your favorite package manager: | ||
```bash | ||
npm i @bit/joshk.vue-spinners-css.facebook-loader | ||
yarn add @bit/joshk.vue-spinners-css.facebook-loader | ||
bit import joshk.vue-spinners-css/facebook-loader | ||
``` | ||
## 💻 Usage Examples | ||
you can use a random color from [jotils](https://bit.dev/joshk/jotils/get-random-color) | ||
### Vue Global Registration | ||
```javascript | ||
import Vue from 'vue' | ||
import * as VueSpinnersCss from "vue-spinners-css"; | ||
Vue.use(VueSpinnersCss) | ||
// Each spinner can now be used in your templates anywhere in the app! | ||
``` | ||
### Vue Local Registration | ||
```javascript | ||
<template> | ||
<FacebookLoader :color="randomcolor" /> | ||
<FacebookLoader /> | ||
</template> | ||
<script> | ||
//using npm or yarn | ||
import { FacebookLoader } from 'vue-spinners-css'; | ||
//using bit | ||
import FacebookLoader from '@bit/joshk.vue-spinners-css.facebook-loader'; | ||
import { getRandomColor } from '@bit/joshk.jotils.get-random-color' | ||
export default ( | ||
{ | ||
data: () => ({ | ||
randomcolor: getRandomColor() | ||
}), | ||
components: { | ||
FacebookLoader, | ||
} | ||
} | ||
) | ||
</script> | ||
``` | ||
### Unpkg Import | ||
```html | ||
<!--Load libraries in your page's header--> | ||
<script src="https://unpkg.com/vue"></script> | ||
<script src="https://unpkg.com/vue-spinners-css"></script> | ||
<!--Use a component somewhere in your app--> | ||
<div id="app"> | ||
<facebook-loader color="blue" /> | ||
</div> | ||
<script> | ||
new Vue({ el: '#app', data: { } }) | ||
</script> | ||
``` | ||
## 👾 Development | ||
You can see the components locally by cloning this repo and doing the following steps: | ||
- Install dependencies from `package.json`, run: `npm install`. | ||
- Run the app in the development mode, run: `npm run serve`. | ||
## ⌨️ Contributing | ||
- Pull requests and ⭐ stars are always welcome. | ||
- For bugs and feature requests, please create an issue. | ||
## 📄 License | ||
[MIT](https://github.com/JoshK2/vue-spinners-css/blob/master/LICENSE) | ||
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
233777
6
0
129
3