npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

vue-loaders

v4.1.4

Published

Vue component wrappers for loaders.css (https://github.com/ConnorAtherton/loaders.css)

Downloads

6,738

Readme

< previous version

NPM

$ npm install -S vue-loaders

CDN

  • umd: https://unpkg.com/vue-loaders/dist/vue-loaders.umd.js
  • esm/mjs: https://unpkg.com/vue-loaders/dist/vue-loaders.esm.js
  • umd: https://unpkg.com/vue-loaders/dist/loaders/loader name.js

Usage

Take a look at available names if you prefer <vue-loaders name="{loader name}"> syntax.

Take a look at available components list if you prefer <vue-loaders-{loader name}> syntax.

For available props see props.

import Vue from 'vue/dist/vue.esm.browser';
import 'vue-loaders/dist/vue-loaders.css';
import VueLoaders from 'vue-loaders';

Vue.use(VueLoaders);

const template = `
<div>
  <vue-loaders-ball-beat color="red" scale="1"></vue-loaders-ball-beat>
  <hr/>
  <vue-loaders name="ball-beat" color="red" scale="1"></vue-loaders>
</div>
`;

new Vue({
  template
}).$mount('#app');
import Vue from 'vue/dist/vue.esm.browser';
import 'vue-loaders/dist/vue-loaders.css';
import VueLoadersBallBeat from 'vue-loaders/dist/loaders/ball-beat';

Vue.use(VueLoadersBallBeat);

const template = `
  <vue-loaders-ball-beat color="red" scale="1"></vue-loaders-ball-beat>
`;

new Vue({
  template
}).$mount('#app');
import Vue from 'vue/dist/vue.esm.browser';
import 'vue-loaders/dist/vue-loaders.css';
import VueLoaders from 'vue-loaders';

Vue.component('my-name', VueLoaders.component);

const template = `
  <my-name name="ball-beat" color="red" scale="1"></my-name>
`;

new Vue({
  template
}).$mount('#app');
import Vue from 'vue/dist/vue.esm.browser';
import 'vue-loaders/dist/vue-loaders.css';
import VueLoadersBallBeat from 'vue-loaders/dist/loaders/ball-beat';

Vue.component('my-name', VueLoadersBallBeat.component);

const template = `
  <my-name color="red" scale="1"></my-name>
`;

new Vue({
  template
}).$mount('#app');
import Vue from 'vue/dist/vue.esm.browser';
import 'vue-loaders/dist/vue-loaders.css';
import VueLoadersBallBeat from 'vue-loaders/dist/loaders/ball-beat.js';

const template = `
  <vue-loaders-ball-beat color="red" scale="1"></vue-loaders-ball-beat>
`;

new Vue({
  components: {
    [VueLoadersBallBeat.component.name]: VueLoadersBallBeat.component
  },
  template
}).$mount('#app');

If you want setting a loader color in your styles, see example below:

import Vue from 'vue/dist/vue.esm.browser';
import 'vue-loaders/dist/vue-loaders.css';
import VueLoaders from 'vue-loaders';

Vue.use(VueLoaders);

const template = `
<div style="color: red;">
  <vue-loaders-ball-beat color="currentColor" scale="1"></vue-loaders-ball-beat>
</div>
`;

new Vue({
  template
}).$mount('#app');

live example

<!DOCTYPE html>
<html>
  <head>
    <title>VueLoaders demo</title>
    <script src="https://unpkg.com/vue"></script>
    <link rel="stylesheet" href="https://unpkg.com/vue-loaders/dist/vue-loaders.css">
    <script src="https://unpkg.com/vue-loaders"></script>
  </head>
  <body>
    <div id="app">
      <vue-loaders-ball-beat color="red" scale="2"></vue-loaders-ball-beat>
      <hr/>
      <vue-loaders name="ball-beat" color="red" scale="2"></vue-loaders>
    </div>
    <script>
      Vue.use(VueLoaders);
      new Vue().$mount('#app');
    </script>
  </body>
</html>

Loaders

|Preview|Name|Component| :-:|-|-| |ball-beat|ball-beat|<vue-loaders-ball-beat/>| |ball-clip-rotate-multiple|ball-clip-rotate-multiple|<vue-loaders-ball-clip-rotate-multiple/>| |ball-clip-rotate-pulse|ball-clip-rotate-pulse|<vue-loaders-ball-clip-rotate-pulse/>| |ball-clip-rotate|ball-clip-rotate|<vue-loaders-ball-clip-rotate/>| |ball-grid-beat|ball-grid-beat|<vue-loaders-ball-grid-beat/>| |ball-grid-pulse|ball-grid-pulse|<vue-loaders-ball-grid-pulse/>| |ball-pulse-rise|ball-pulse-rise|<vue-loaders-ball-pulse-rise/>| |ball-pulse-sync|ball-pulse-sync|<vue-loaders-ball-pulse-sync/>| |ball-pulse|ball-pulse|<vue-loaders-ball-pulse/>| |ball-rotate|ball-rotate|<vue-loaders-ball-rotate/>| |ball-scale-multiple|ball-scale-multiple|<vue-loaders-ball-scale-multiple/>| |ball-scale-ripple-multiple|ball-scale-ripple-multiple|<vue-loaders-ball-scale-ripple-multiple/>| |ball-scale-ripple|ball-scale-ripple|<vue-loaders-ball-scale-ripple/>| |ball-scale|ball-scale|<vue-loaders-ball-scale/>| |ball-spin-fade-loader|ball-spin-fade-loader|<vue-loaders-ball-spin-fade-loader/>| |ball-triangle-path|ball-triangle-path|<vue-loaders-ball-triangle-path/>| |ball-zig-zag-deflect|ball-zig-zag-deflect|<vue-loaders-ball-zig-zag-deflect/>| |ball-zig-zag|ball-zig-zag|<vue-loaders-ball-zig-zag/>| |cube-transition|cube-transition|<vue-loaders-cube-transition/>| |line-scale-party|line-scale-party|<vue-loaders-line-scale-party/>| |line-scale-pulse-out-rapid|line-scale-pulse-out-rapid|<vue-loaders-line-scale-pulse-out-rapid/>| |line-scale-pulse-out|line-scale-pulse-out|<vue-loaders-line-scale-pulse-out/>| |line-scale|line-scale|<vue-loaders-line-scale/>| |line-spin-fade-loader|line-spin-fade-loader|<vue-loaders-line-spin-fade-loader/>| |pacman|pacman|<vue-loaders-pacman/>| |semi-circle-spin|semi-circle-spin|<vue-loaders-semi-circle-spin/>| |square-spin|square-spin|<vue-loaders-square-spin/>| |triangle-skew-spin|triangle-skew-spin|<vue-loaders-triangle-skew-spin/>|

Props

vue-loaders component support the following props:

vue-loaders-{loader name} components(see components) support the following props:

Examples:

<vue-loaders name="ball-beat" color="black" scale="1.2"></vue-loaders>
<vue-loaders-ball-beat color="black" scale="1"></vue-loaders-ball-beat>