A component for loading spinner.
Use Npm
npm install react-core-loading-spinner --save-devUse Yarn
yarn add react-core-loading-spinnerCode Example
import React from 'react';
import {Spinner} from 'react-core-loading-spinner';
let App = React.createClass({
//...
render() {
return(
<div>
<Spinner show={true} text="Requesting..."></Spinner>
</div>
);
},
})npm run startPls open the url:
| Props | Type | Example | Description |
|---|---|---|---|
| show | Boolean | true | show or hide |
| text | String | 'Loading...' | the text you want to show |
| size | String | 28px | the size of the loading spinner |
| children | Component | ... | change the loading element |
| type | String | gif | loading gif |
| style | Object | {} | change loading wrap style |
Your contributions and suggestions are welcome 😄😄💐💐🌠🌠
