React Loading
A loading skeleton component built on React
Installation
Use the package manager npm
or yarn
to install React Loading
npm install @yisheng90/react-loading --save
or
yarn add react-loading
Usage
import Skeleton from '@yisheng90/react-loading';
<Skeleton/>
Width
![width](https://i.imgur.com/8wAUZX4.gif)
<Skeleton width={250}/>
<Skeleton width="250px"/>
<Skeleton width="5rem"/>
Height
![width](https://i.imgur.com/k7LDwjD.gif)
<Skeleton height={25} />
<Skeleton height="25px" />
<Skeleton height="3rem" />
Rows
![width](https://i.imgur.com/bA5LKdJ.gif)
<Skeleton width={250} row={6} />
Circle
![width](https://i.imgur.com/kFLU9Pn.gif)
<Skeleton width={250} circle />
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
MIT