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

react-skeleton-loader-pulse

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-skeleton-loader-pulse

Skeleton Loader Pulse for ReactJS

  • 1.0.20
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

React Skeleton Loader Pulse Component

Skeleton Loader Pulse for ReactJS

Demo

Install

npm install react-skeleton-loader-pulse

or

yarn add react-skeleton-loader-pulse

Usage

SkeletonItem

import React from "react";
import { SkeletonItem } from "react-skeleton-loader-pulse";

export default function Component() {
  return <SkeletonItem />;
}

Props

propertypropTyperequireddefaultdescription
colorstring | undefined-#cccSkeleton color
pulseTimenumber | undefined-1pulse time in seconds
widthstring | number | undefined-100%width container component
heightstring | number | undefined-10pxheight container component
marginTopstring | number | undefined-0margin top component
marginBottomstring | number | undefined-0margin bottom component
marginLeftstring | number | undefined-0margin left component
marginRightstring | number | undefined-0margin right component
borderRadiusstring | number | undefined-0border radius component

SkeletonLayout

import React from "react";
import { SkeletonLayout } from "react-skeleton-loader-pulse";

export default function Component() {
  return (
    <SkeletonLayout
      align="center"
      items={[
        {
          borderRadius: "50%",
          height: 100,
          marginBottom: 15,
          width: 100,
        },
        {
          height: 25,
          marginBottom: 10,
          width: 250,
        },
        {
          height: 10,
          width: 270,
        },
        {
          height: 10,
          width: 300,
        },
        {
          height: 10,
          width: 280,
        },
      ]}
    />
  );
}

Props

propertypropTyperequireddefaultdescription
colorstring | undefined-#cccSkeleton color
pulseTimenumber | undefined-1pulse time
widthstring | number | undefined-100%width container component
direction"column" | "row" | undefined-columnflex-direction of layout
align"center" | "left" | "right" | undefined-leftalign items of layout
itemsItem[]yes-Layout: Array of objects

Props array Item

propertypropTyperequireddefaultdescription
heightnumber | stringyes-height
widthnumber | string | undefined-100%widtt
borderRadiusnumber | string | undefined-0border radius
marginBottomnumber | string | undefined-3pxmargin bottom
marginTopnumber | string | undefined-3pxmargin top
marginLeftnumber | string | undefined-0margin left
marginRightnumber | string | undefined-0margin right

LICENSE

This project is licensed under the MIT License.

Development by: André Coelho

Keywords

FAQs

Package last updated on 11 Mar 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