1.1.8 • Published 2 years ago

lesca-react-loading v1.1.8

Weekly downloads
3
License
MIT
Repository
-
Last release
2 years ago

React React React React React NPM React NPM

Why use it?

a simple process loading of react component.

look like this.

Live Demo

Installation

npm install lesca-react-loading --save

Usage

As a Node module:

import { useState } from 'react';
import LoadingProcess from 'lesca-react-loading';

const Page = () => {
  const [uploading, setUploading] = useState(false);
  return (
    <div>
      { uploading && (
        <LoadingProcess backgroundColor='#00ff66' iconColor='#f60' scale={0.8}>
          <span className='inner'>uploading...</span>
        </LoadingProcess>
      )}
    </div>
  );
};

Development

Porps

propsdescriptiondefault
position:stringset position of component'fixed'
scale:numbericon scale1
backgroundColor:stringset background color'rgba(0,0,0,.8)'
iconColor:objectset icon color'#fff'

Features

  • maintain if necessary
1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.0.2

2 years ago

1.1.0

2 years ago

1.1.2

2 years ago

1.0.3

2 years ago

1.0.1

3 years ago

1.0.0

3 years ago