use npm
npm install ppeerit-react-loading --save
// ES6
import Loading from 'ppeerit-react-loading';
//...
render() {
return (
<div>
<Loading size="32" type="spin" color="#0099FF"/>
</div>
)
}
//...
Loading
Component has size
, type
, color
props:
size
:number
is the Loading Component'swidth
andheight
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