1.0.2 • Published 5 years ago

react-loading-bubbles v1.0.2

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

React Loading Bubbles

A loading modal component using React portals.

Implementation Guide

1. Installation
  • Yarn:

    yarn add react-loading-bubbles

  • NPM:

    npm install react-loading-bubbles --save

2. Use
import React from 'react';

// Import the component
import LoadingModal from 'react-loading-bubbles';

function MyComponent(props) {
	// Use the component
	return (
		<>
			<p>Loading bubbles!</p>

			{props.isLoading && <LoadingModal size={128} color="#2c7594" />}
		</>
	);
}

API

NameTypeDefaultDescription
sizenumber128Size of the loading SVG.
colorstring#2c7594The color of the loading bubbles.

Creator

Curtis