rainbow-loading
v1.0.1
Published
A rainbow loadin component written by ant-design for react projects.
Downloads
4
Readme
RainBow Loading
Description
Think about this situation: when we load one page which contains long time network request,that makes the page keep white for a long time until the response returned. We often uses a loading gif to provide a better user experience. This component is a rainbow loading just like the picture below shows:
Install
npm install rainbow-loading
Usage
In React Component
import React from 'react';
import Loading from 'rainbow-loading';
......
render(){
return (
<Loading
numbers={[1,2,3]}
/>
);
}
The numbers property is optional, which controls the line number of rainbow. As default, the line number of rainbow is five. You can pass the numbers property to modify. And you can set seven lines at most.