You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-loader-placeholder

Package Overview
Dependencies
Maintainers
0
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-loader-placeholder

A React library used to make your loader awesome

1.1.11
latest
Source
npmnpm
Version published
Maintainers
0
Created
Source

react-loader-placeholder

npm version npm npm bundle size

Make beautiful, animated loading that easy adapt to your app.

Gif in action

Install

npm install react-loader-placeholder

Principles

The <ReactLoaderPlaceholder> uses HTML data attribute for mark items and CSS for style that items.

Base usabe code

Usage

  • Wrap component or HTML with <ReactLoaderPlaceholder>.
  • Set loading prop.
  • Mark HTML items with data-react-loader-placeholder={true} attribute.
  • ?????
  • PROFIT.

If you need to enable or disable not all marked items, just set data-react-loader-placeholder} to true or false.

##Props

The <ReactLoaderPlaceholder> component props:

  • loading boolean required - Enable or disable placeholder.
  • color string optional - Background color of placeholder item.
  • disableAnimation boolean optional - Enable or disable animation.
  • className string optional
  • style Object optional

Keywords

react

FAQs

Package last updated on 12 Oct 2024

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