1.0.0 • Published 4 years ago

spinner-material v1.0.0

Weekly downloads
29
License
MIT
Repository
github
Last release
4 years ago

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

PropertyTypeDefault
radiusString40
colorString#333333
strokeString5
visibleStringtrue
<div>
  <spinner-material stroke="4" color="purple" radius="40" />
</div>