npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

shimmer-ui-effect

v1.3.4

Published

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

Downloads

17

Readme

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

| Property | Type | Required | Default value | Description | | :------- | :----- | :------- | :------------ | :----------------------------------------- | | borderRadius | number | no | 4 | Border Radius of the button in px unit | | height | number | no | 30 | Height of the button in px unit | | width | number | no | 120 | Width 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

| Property | Type | Required | Default value | Description | | :---------- | :----- | :------- | :------------ | :------------------------------------------------------------ | | line | number | yes | 3 | Number of line | | gap | number | yes | 10 | Gap between of lines. Four options available [10, 15, 20, 30] | | variant | string | yes | primary | Tow options available ["primary", "secondary"] | | className | string | no | | Additonal 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

| Property | Type | Required | Default value | Description | | :---------- | :----- | :------- | :------------ | :------------------------------------------------------------ | | line | number | yes | 5 | Number of line | | gap | number | yes | 15 | Gap between of lines. Four options available [10, 15, 20, 30] | | className | string | no | | Additonal 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

| Property | Type | Required | Default value | Description | | :---------- | :----- | :------- | :------------ | :------------------------------------------------------------ | | width | number | no | 100 | Width of the badge in px unit | | height | number | no | 24 | Height 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

| Property | Type | Required | Default value | Description | | :---------- | :----- | :------- | :------------ | :------------------------------------------------------------ | | size | number | no | 100 | Size of Image | | center | boolean | no | false | Center alignment property | | className | string | no | | Additonal 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

| Property | Type | Required | Default value | Description | | :---------- | :----- | :------- | :------------ | :------------------------------------------------------------ | | width | number | no | | Width of Thumbnail. By default 100% | | height | number | yes | 200 | Height of Thumbnail. | | center | boolean | no | false | Center alignment property | | rounded | boolean | no | false | Border radius option enable/disable | | fitOnFrame | boolean | no | false | Adjust height of parent. Will block 100% of parent element(s) | | className | string | no | | Additonal style classes |


           

Contribute

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

License

MIT © Hiren K Vaghasiya