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

overlay-loading-react

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

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
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
21
decreased by-52.27%
Maintainers
1
Weekly downloads
 
Created
Source

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

  • @muhazzib

linkedin

Keywords

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc