spinner-material

1.0.0 • Public • Published

npm downloads total npm version npm license

spinner-material

A flashy material-design inspired spinner with a custom element and css.

Example of Spinner

Installation

npm install --save spinner-material

or

yarn add spinner-material

Initialization

The module registers a custom element on the window and is immediately invoked. To use the custom element, the module needs to be imported at least once somewhere in your stack.

Webpack

module.exports = {
  entry: ['spinner-material', './index.js'],
}

Inline

import 'spinner-material';
 
// or
 
require('spinner-material');

Usage

Property Type Default
radius String 40
color String #333333
stroke String 5
visible String true
<div>
  <spinner-material stroke="4" color="purple" radius="40" />
</div>

Package Sidebar

Install

npm i spinner-material

Weekly Downloads

5

Version

1.0.0

License

MIT

Unpacked Size

11.2 kB

Total Files

6

Last publish

Collaborators

  • icarus-sullivan