1.0.10 • Published 8 months ago

pj-global-loader v1.0.10

Weekly downloads
-
License
ISC
Repository
github
Last release
8 months ago

pj-global-loader

Here is the one-stop solution to add a global loader into your project to seamlessly run your project with all Axios requests.

Table of Contents

Installation

Install pj-global-loader with npm

  npm install pj-global-loader

Demo

Usage

  • To add pj-global-loader into your project, you can import as it follows:
import { Loader } from 'pj-global-loader';

API Reference

  • Use pj-global-loader as below:
ParameterTypeDescription
axiosaxiosRequired. must pass axios as props

Custom

ParameterTypeDescription
colorstring- Pass color props to change the color of your loader. The color value must be a string.
sizenumber- Pass size props to give custom size as you want. The size value must be a number.

Example

import { Loader } from 'pj-global-loader';
import axios from 'axios';

function App() {
  return <Loader axios={axios} color="green" size={40} />
}

export default App;

Authors

  • Prince Javiya
1.0.10

8 months ago

1.0.9

8 months ago

1.0.8

8 months ago

1.0.7

8 months ago

1.0.6

8 months ago

1.0.5

8 months ago

1.0.4

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago