Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

just-a-throbber

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

just-a-throbber

just a throbber. simple throbber/activity indicator with no dependencies

latest
Source
npmnpm
Version
1.0.8
Version published
Maintainers
1
Created
Source

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

Keywords

throbber

FAQs

Package last updated on 17 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts