@garney/busy-indicator
v0.2.1
Published
Busy indicator that wraps react-loader-spinner
Downloads
10
Readme
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