1.0.8 • Published 3 years ago

just-a-throbber v1.0.8

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
3 years ago

Just A Throbber

Want a way to show the user that important stuff is being done and they should wait? Looking for something simple and lightweight? This is it.

  • zero dependencies
  • just css and html
  • overlay automatically added to dim the background and prevent clicking on other things
  • easy to get started with and use
  • drop it at the root of your app and you're able to show and hide it from any place without updating state

Installation

npm install --save just-a-throbber

Usage

import React, { Fragment } from 'react';
import JustAThobber from 'just-a-throbber';

ReactDOM.render(
	<Fragment>
		<JustAThobber throbberType='ropePull' />
		<App />
	</Fragment>,
	document.getElementById('root')
);

then just some simple javascript to call or hide it as you need it:

document.getElementById('JAT-container').style.display = 'block';
API.search(data).then((data) => {
	document.getElementById('JAT-container').style.display = 'none';

	//other awesome code here
});
throbberType
ropePullalt text
theBeatalt text
wackyWafflesalt text
sunfloweralt text
dogChasingTailalt text
rightRoundBabyalt text
1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago