Skip to content

rconard/react-loading

 
 

Repository files navigation

react-loading

Build Status Coverage Status

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

Installation

npm install react-loading

Demo

Check here

Loading Types

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

Example

import React from 'react';
import ReactLoading from 'react-loading';

const Example = ({ type, color }) => (
	<ReactLoading type={type} color={color} height='667' width='375' />
);

export default Example;

Props

Name Type Default Value
type String balls
color String #ffffff
delay Number 1000 (msecs)
height Number or String 64 (px)
width Number or String 64 (px)
className String ''

License

MIT

About

React component for loading animations

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%