react-loadings

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i react-loadings

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • artisan