0.1.2 โข Published 1 year ago
@horhorou/react-loading-overlay v0.1.2
React Loading Overlay
React Loading Overlay is a lightweight, reliable and has an all-purpose design. You can use it to display a loading screen to your users when an action is in progress.
About it
- ๐ Lightweight (Bundlephobia 1.2kb)
- ๐ฆ No dependencies
- โก Easy to use
- ๐งช Tested
- ๐ Made with TypeScript
Installation
โฌ Install it now with NPM
npm install @horhorou/react-loading-overlay
โฌ Or with YARN
yarn add @horhorou/react-loading-overlay
Usage / Examples
const App = () => {
const [ isLoading , setLoading ] = useState(false)
return(
<div style={{ position:"relative" }}>
<LoadingOverlay visible={isLoading}>
// ...
</div>
)
}