Skip to content

Repository files navigation

react-loading

Build StatusCoverage Status

Easy to use loading animations for React projects. Uses SVG animations from Brent Jackson's loading project.

Installation

npm i react-loading

or

yarn add react-loading

Demo

Check here

Loading Types

  • blank
  • balls
  • bars
  • bubbles
  • cubes
  • cylon
  • spin
  • spinningBubbles
  • spokes

Examples

importReactfrom'react';importReactLoadingfrom'react-loading';constExample=({ type, color })=>(<ReactLoadingtype={type}color={color}height={667}width={375}/>);exportdefaultExample;
importReactfrom'react';importReactLoadingfrom'react-loading';constExample=({ type, color })=>(<ReactLoadingtype={type}color={color}height={'20%'}width={'20%'}/>);exportdefaultExample;

Props

NameTypeDefault Value
typeStringballs
colorString#ffffff
delayNumber0 (msecs)
heightNumber or String64 (px)
widthNumber or String64 (px)
classNameString''

License

MIT

About

React component for loading animations

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages