0.0.3 • Published 7 years ago

ppeerit-react-loading v0.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

Loading svg for ReactJS

Document

中文文档

Installation

use npm

npm install ppeerit-react-loading --save

Import into your project

// ES6
import Loading from 'ppeerit-react-loading';

Add Loading Component to render function

//...
render() {
    return (
        <div>
            <Loading size="32" type="spin" color="#0099FF"/>
        </div>
    )
}
//...

Options

Loading Component has size, type, color props:

  • size:number is the Loading Component's width and height
  • type:string is the style for Loading Component:
    • spin
    • spinAround
    • spinLong
    • bars
    • barsTop
    • barsBottom
    • barsStagger
    • barsTransparent
    • barsRoundTransparent
  • color:string is the Loading Component's color
0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago