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

react-generic-skeleton

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-generic-skeleton

React library for generic Skeletons

  • 0.2.2
  • latest
  • npm
  • Socket score

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

Installation

yarn add react-generic-skeleton

# or

npm install react-generic-skeleton

Usage

You can wrap the SkeletonWrapper around your components and this will generate the skeletons for you.

import { SkeletonWrapper } from "react-generic-skeleton";

<SkeletonWrapper isLoading={true}>
  <h1>Here is a header</h1>
  <p>
    Lorem ipsum dolor sit amet, consectetur adipisicing elit. Odio harum
    deleniti doloribus sunt amet quisquam quidem consequuntur voluptas!
    Voluptatum explicabo, quaerat nemo expedita voluptatibus laudantium. Id esse
    odit exercitationem consectetur!
  </p>
</SkeletonWrapper>;

If you want to try it out first, take a look in the CodeSandbox

Documentation

The full documentation can be found here

Customization

import { SkeletonProvider } from "react-generic-skeleton";

const config = {
  animation: "wave",
  background: "linear-gradient(90deg, #cc7 45%, #dbd8d8 55%, #cc7 100%)",
};

// Do this at the root of your application
function App({ children }) {
  return <SkeletonProvider config={config}>{children}</SkeletonProvider>;
}

Keywords

FAQs

Package last updated on 14 Dec 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