JSPM

  • Created
  • Published
  • 0
  • Score
    100M100P100Q30825F

Simple customizable React spinner component

Package Exports

  • mtm-spinner
  • mtm-spinner/dist/index.tsx

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 (mtm-spinner) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Simple Customizable React Spinner Component

TypeScript Total Downloads Monthly Download Weekly Downloads Version

NPM / GitHub

GIF

A Customizable React Spinner/Loader component with ability to add your custom .SVG spinner for your project. Below are instructions of how to install and configure the component.

Install:

npm install mtm-spinner

Import:

import Spinner from 'mtm-spinner';

Use (default props):

<Spinner
    textVisible = {true}
    spinnerVisible = {true}
    loaderTitle = {'Loading...'}
    position = "center" | "left" | "right"
    fontSize = "16px"
    fontFamily = "inherit"
    fontColor = "black"
    spinnerWidth = "20px"
    spinnerHeight = "20px"
    margin = "0px"
    padding = "1em 0 1em 0"
    spinner = {customSVG}
    rotationTime = '1s'
    rotationSteps = '8'
    animationLength = 'infinite'
/>

Enjoy 🚀