@garney/busy-indicator

0.2.1 • Public • Published

busy-indicator

Busy indicator that wraps react-loader-spinner

🚀 Getting Started

Using npm:

npm i @garney/busy-indicator

Usage

import { BusyIndicator, setBusyStatus }  from '@garney/busy-indicator';
 
function DeepChild() {
  return (
    <div>
      <button onClick={() => {
            setBusyStatus(true);
        }}>Show</button>
      <button onClick={() => {
          setBusyStatus(false);
        }}>Hide</button>
    </div>
  )
}
 
export default () => {
  return (
    <div className="main-app">
        <DeepChild/>
        <BusyIndicator/>
    </div>
  );
};

📌 Props

Prop Type Default Required
options any false No

✌️ License

MIT

Readme

Keywords

Package Sidebar

Install

npm i @garney/busy-indicator

Weekly Downloads

3

Version

0.2.1

License

MIT

Unpacked Size

10.7 kB

Total Files

9

Last publish

Collaborators

  • garney