1.0.0 • Published 6 years ago
spinner-material v1.0.0
spinner-material
A flashy material-design inspired spinner with a custom element and css.

Installation
npm install --save spinner-materialor
yarn add spinner-materialInitialization
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>1.0.0
6 years ago