1.3.4 • Published 1 year ago

shimmer-ui-effect v1.3.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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