3.0.0 • Published 5 years ago

@opuscapita/react-spinner v3.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

react-spinner

Description

Wait indicator to be shown on top of any container.

Installation

npm install @opuscapita/react-spinner

Demo

View the DEMO

Builds

UMD

The default build with compiled styles in the .js file. Also minified version available in the lib/umd directory.

CommonJS/ES Module

You need to configure your module loader to use cjs or es fields of the package.json to use these module types. Also you need to configure sass loader, since all the styles are in sass format.

API

Uses spin.js, checkout styling options there.

Prop nameTypeDefaultDescription
delaynumber500Delay to show spinner
configobject{ color: '#FAC51D', width: 4 }Spin.js config options

Code example

import Spinner from '@opuscapita/react-spinner';

function SpinnerView() {
  return (
    <Spinner />
  );
}