New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

overlay-loading-react

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

overlay-loading-react

Overlay Loading React

1.0.6
latest
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created

React-Overlay-Loading

Installation

  npm install overlay-loading-react

Quick start:

import OverlayLoader from "overlay-loading-react";

<OverlayLoader loadingText='Loading...' active />

Variants

Custom Loader:

Custom loader can be used in form of GIF and React Elements as well.

import OverlayLoader from "./components/Loader";

const App = () => {
  return (
    <OverlayLoader>
        <MyComponent />  // Your Loader
    </OverlayLoader>
  );
}

Props:

  • active (boolean)
    • default: true
  • onClick (function)
    • default: undefined - click handler for the overlay when active.
  • overlayContainerStyle (object)
    • default: {} - inline styling for overlay main container.
  • contentContainerStyle (object)
    • default: {} - inline styling for content container.
  • loadingTextStyle (object)
    • default: {} - inline styling for loading text if provided.
  • loadingText (string)
    • default: undefined - the text to render in the loader overlay when active.
  • variant (string)
    • default: spinner - The type of loading to show.

Authors

linkedin

FAQs

Package last updated on 15 Sep 2022

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