A flashy material-design inspired spinner with a custom element and css.
npm install --save spinner-material
or
yarn add spinner-material
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.
module.exports = {
entry: ['spinner-material', './index.js'],
}
import 'spinner-material';
// or
require('spinner-material');
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>