Socket
Socket
Sign inDemoInstall

@pderas/vue2-loader

Package Overview
Dependencies
0
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @pderas/vue2-loader

A vue 2 component to show a loading indicator


Version published
Weekly downloads
10
Maintainers
3
Created
Weekly downloads
 

Readme

Source

Vue Loader

A vue.js component to show a loading indicator.

How to initialize Vue Loader

Vue loader is built as a vue plugin. It can be initialized just as the Vue documentation states.

import Loader from "@pderas/vue2-loader";

Vue.use(Loader, {
    color:  'black',    // default
    type:   'bar'       // default
});

Usage

Creation

A vue loader is easily created, and usually combined with a v-if to show/hide the loader.

<loader></loader>

Properties

PropertyRequiredTypeDefaultDescription
colorfalseString'black'The color of the loader (can be a hex value)
typefalseString'bar'The type of style to use for the loader
Available Types
  1. bar
  2. spinning-dot
Styling

Styling is currently limited, but can be expanded in the future.

License

This project is covered under the MIT License. Feel free to use it wherever you like.

Keywords

FAQs

Last updated on 25 Feb 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc