1.0.0 • Published 8 years ago

react-loadings v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

ReactLoading

react version

Usage.

First, import the react-loading stylesheet:

  <link rel="stylesheet" href="dist/stylesheet/react-loading.css" />

then, import the react-loading jsx file:

  import React from 'react';
  import ReactDOM from 'react-dom';
  import ReactLoading from 'ReactLoading.jsx';
  
  ReactDOM.render(<ReactLoading message={'kiri'} backdrop={true} />, document.getElementById('react-loading'));

API

message
type: String | Object
default: 'Loading'

backdrop
type: Boolean
default: true

position
type: Object
default: null

className
type: String | Object default: null