spinner-material
v1.0.0
Published
A flashy material-design inspired spinner using purely css and custom element
Downloads
19
Maintainers
Readme
spinner-material
A flashy material-design inspired spinner with a custom element and css.
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>