0.1.2 โ€ข Published 1 year ago

@horhorou/react-loading-overlay v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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>
    )

}

License

MIT