JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q44307F
  • License ISC

Package Exports

  • pj-global-loader
  • pj-global-loader/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pj-global-loader) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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:
Parameter Type Description
axios axios Required. must pass axios as props

Custom

Parameter Type Description
color string - Pass color props to change the color of your loader. The color value must be a string.
size number - 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