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

react-content-loader

Package Overview
Dependencies
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-content-loader

SVG-Powered component to easily create placeholder loadings (like Facebook cards loading)

  • 6.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
495K
increased by5.43%
Maintainers
1
Weekly downloads
 
Created

What is react-content-loader?

react-content-loader is a React component that allows you to create customizable SVG-based loading placeholders. It helps improve the user experience by displaying a skeleton screen while content is being loaded.

What are react-content-loader's main functionalities?

Basic Loader

This feature allows you to create a basic loading placeholder with a rectangle shape. The `rect` element defines the shape and size of the placeholder.

<ContentLoader>
  <rect x="0" y="0" rx="5" ry="5" width="100" height="100" />
</ContentLoader>

Custom Shapes

You can create custom shapes by combining different SVG elements like `circle` and `rect`. This example shows a circle and a rectangle side by side.

<ContentLoader>
  <circle cx="50" cy="50" r="50" />
  <rect x="120" y="0" rx="5" ry="5" width="100" height="100" />
</ContentLoader>

Preset Loaders

react-content-loader provides several preset loaders like `Facebook`, `Instagram`, and `Code` that you can use out of the box for common loading scenarios.

<Facebook />
<Instagram />
<Code />

Customizable Colors

You can customize the colors of the loading placeholder using the `backgroundColor` and `foregroundColor` props.

<ContentLoader backgroundColor="#f3f3f3" foregroundColor="#ecebeb">
  <rect x="0" y="0" rx="5" ry="5" width="100" height="100" />
</ContentLoader>

Other packages similar to react-content-loader

Keywords

FAQs

Package last updated on 14 Jan 2021

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