Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-loader-spinner

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-loader-spinner

Vue.js spinner plugin

  • 0.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-16.67%
Maintainers
1
Weekly downloads
 
Created
Source

Vue Spinner Plugin

A Vue.js spinner plugin which helps easily show/hide loading spinner in whole page or only specific section of your application.

Benefits

  • No extra depencencies
  • No need to add local state to each component
  • Simple API: Vue.$spinner.show() and Vue.$spinner.hide()

Installation

The easiest way to use Vue Spinner Plugin is to install it from npm or yarn.

npm install vue-loader-spinner --save

Or

yarn add vue-loader-spinner

Usage

First, import and install the plugin.

import Vue from 'vue'
import LoaderSpinner from 'vue-loader-spinner'
Vue.use(LoaderSpinner)

Then in your components you can show the spinner by calling this.$spinner.show() and hide by calling this.$spinner.hide().

You can also pass additional options to the plugin when you install it:

import Vue from 'vue'
import LoaderSpinner from 'vue-loader-spinner'
Vue.use(LoaderSpinner, {
    size: 5,
    color: 'green',
    background: 'rgba(10, 10, 10, 0.5)',
})

Showing splinner in specific section

To show a spinner in specific section you can provide a CSS selector to a function this.$spinner.show('#my-block').

Credits

Big thanks to @FrontendSophie for the initial idea of the spinner component.

Keywords

FAQs

Package last updated on 13 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc