tiny-skeleton-loader-react
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

tiny-skeleton-loader-react

zero dependency, ultra lightweight (1KB gzipped) skeleton loader component for react

Example

GitHub Actions Status NPM gzip

🔧 Installation

npm install --save tiny-skeleton-loader-react

📦 Usage

import React from "react";

import SkeletonLoader from "tiny-skeleton-loader-react";

class Example extends React.Component {
  render() {
    return <SkeletonLoader />;
  }
}

👀 Properties

Property Attribute Description Type Default
width width Loader Width string "100%"
height height Loader Height string "1em"
background background Loader background color string "#eff1f6"
circle circle Make Skeleton Circle boolean false
borderRadius border-radius Loader radius string "4px"
block block Whether to start new boolean true
style style Extra Styles object {}
as -- The HTML element string "div"

License

MIT © hc-oss

Readme

Keywords

none

Package Sidebar

Install

npm i tiny-skeleton-loader-react

Weekly Downloads

801

Version

1.2.1

License

MIT

Unpacked Size

17.2 kB

Total Files

7

Last publish

Collaborators

  • harshzalavadiya