Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jappwilson-react-load-mask

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jappwilson-react-load-mask

React load mask

  • 2.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

react-load-mask

A carefully crafted LoadMask for React

Install

$ npm i react-load-mask --save

Key features

  • adjustable size
  • adjustable visibility
  • easily themeable
  • css animations
  • small footprint

Usage

import 'react-load-mask/index.css'
import LoadMask from 'react-load-mask'

<LoadMask visible={true} />
<LoadMask visible={true} size={20} />
<LoadMask visible={false} size={120} />

Props

  • visible - defaults to false. Set to true if you want the LoadMask to be visible.
  • size - defaults to 40. The size of the loader inside the LoadMask
  • theme - defaults to "default". See the theming section below.

Theming

The base css class of the component is react-load-mask.

For having the default theme, just import react-load-mask/index.css. Basically, that uses react-load-mask/base.css (the functional styles) AND react-load-mask/theme/default.css (the default theme styles).

If you want to use/build another theme, you can render the LoadMask as:

<LoadMask theme="custom" visible />

The code above makes the LoadMask component have the react-load-mask--theme-custom className.

License

MIT

FAQs

Package last updated on 31 Jan 2017

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