New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

shimmer-ui-effect

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shimmer-ui-effect

Shimmer/Layload UI Components for React JS 🚀 by Hiren Vaghasiya

latest
Source
npmnpm
Version
1.3.4
Version published
Maintainers
1
Created
Source

Shimmer / Lazyload UI Components for React 🚀

Customizable Shimmer UI Compoenents Effects for React.

🔥 MORE CUSTOMIZATION OPTIONS COMING SOON - STAY TUNED!!!

Install

npm install shimmer-ui-effect --save

or

yarn add shimmer-ui-effect

Elements

1️⃣ Shimmer UI Button

   
import React from "react";
import { ShimmerUIButton } from "shimmer-ui-effect";

const App = () => {
  return (
    return <ShimmerUIButton  borderRadius={4} height={40} width={400} />;
  )
}

Properties

PropertyTypeRequiredDefault valueDescription
borderRadiusnumberno4Border Radius of the button in px unit
heightnumberno30Height of the button in px unit
widthnumberno120Width of the button in px unit

2️⃣ Shimmer UI Title

   
import React from "react";
import { ShimmerUITitle } from "shimmer-ui-effect";

const App = () => {
  render() {
    return <ShimmerUITitle line={3} gap={10} variant="primary" />;
  }
}

Properties

PropertyTypeRequiredDefault valueDescription
linenumberyes3Number of line
gapnumberyes10Gap between of lines. Four options available [10, 15, 20, 30]
variantstringyesprimaryTow options available ["primary", "secondary"]
classNamestringnoAdditonal style classes

3️⃣ Shimmer UI Text

   
import React from "react";
import { ShimmerUIText } from "shimmer-ui-effect";

const App = () => {
  render() {
    return <ShimmerUIText line={5} gap={15} />;
  }
}

Properties

PropertyTypeRequiredDefault valueDescription
linenumberyes5Number of line
gapnumberyes15Gap between of lines. Four options available [10, 15, 20, 30]
classNamestringnoAdditonal style classes

4️⃣ Shimmer UI Badge

   
import React from "react";
import { ShimmerUIBadge } from "shimmer-ui-effect";

const App = () => {
  render() {
    return <ShimmerUIBadge width={200} height={30} />;
  }
}

Properties

PropertyTypeRequiredDefault valueDescription
widthnumberno100Width of the badge in px unit
heightnumberno24Height of the badge in px unit

5️⃣ Shimmer UI Circular Image

   
import React from "react";
import { ShimmerUICircularImage } from "shimmer-ui-effect";

const App = () => {
  render() {
    return <ShimmerUICircularImage size={200} />;
  }
}

Properties

PropertyTypeRequiredDefault valueDescription
sizenumberno100Size of Image
centerbooleannofalseCenter alignment property
classNamestringnoAdditonal style classes

6️⃣ Shimmer UI Thumbnail Image

   
import React from "react";
import { ShimmerUIThumbnail } from "shimmer-ui-effect";

const App = () => {
  render() {
    return <ShimmerUIThumbnail height={200} rounded />;
  }
}

Properties

PropertyTypeRequiredDefault valueDescription
widthnumbernoWidth of Thumbnail. By default 100%
heightnumberyes200Height of Thumbnail.
centerbooleannofalseCenter alignment property
roundedbooleannofalseBorder radius option enable/disable
fitOnFramebooleannofalseAdjust height of parent. Will block 100% of parent element(s)
classNamestringnoAdditonal style classes

           

Contribute

Feel free to send PR and any suggestions. Thanks & Best Regards 😊

License

MIT © Hiren K Vaghasiya

Keywords

shimmer

FAQs

Package last updated on 17 Apr 2023

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