JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q42737F
  • License MIT

A React library used to make your loader awesome

Package Exports

  • react-loader-placeholder

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-loader-placeholder) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

react-loader-placeholder

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

  1. Wrap component or HTML with <ReactLoaderPlaceholder>.
  2. Set loading prop.
  3. Mark HTML items with data-react-loader-placeholder={true} attribute.
  4. ?????
  5. 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