1.0.1 • Published 7 years ago

rainbow-loading v1.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

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:

npm.io

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.

1.0.1

7 years ago

1.0.0

7 years ago