1.0.2 • Published 6 years ago

react-core-loading-spinner v1.0.2

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

React-Core-Loading-Spinner

npm Node Version Build Status

A component for loading spinner.

Example

Install

Use Npm

npm install react-core-loading-spinner --save-dev

Use Yarn

yarn add react-core-loading-spinner

Code 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>
    );
  },

})

Run Demo

npm run start

http://localhost:9000/webpack-dev-server/demo/index.html

Demo

Props

PropsTypeExampleDescription
showBooleantrueshow or hide
textString'Loading...'the text you want to show
sizeString28pxthe size of the loading spinner
childrenComponent...change the loading element
typeStringgifloading gif
styleObject{}change loading wrap style

Contributions

Your contributions and suggestions are welcome 😄😄💐💐🌠🌠

MIT Liscense