shimmer

RSE

React Shimmer Category Item Component - Light, Dark & Custom Modes

Enhance your web applications with the dynamic Shimmer Category Item Component, available in light and dark modes with customizable sizes.


Shimmer Category Item Light Mode

<ShimmerCategoryItems mode="light" />

<ShimmerCategoryItems mode="light" imageRounded={50} />

Shimmer Category Item Dark Mode

<ShimmerCategoryItems mode="dark" />

<ShimmerCategoryItems mode="dark" imageRounded={50} />

Shimmer Category Item Custom Mode

<ShimmerCategoryItems mode="custom" from="#7c3aed" via="#8b5cf6" to="#7c3aed" />

<ShimmerCategoryItems mode="custom" imageRounded={50} from="#7c3aed" via="#8b5cf6" to="#7c3aed" />

Shimmer Category Item Loading Mode

<ShimmerCategoryItems mode='light' loading={loading} >
  <div style={{ display: "flex" }}>
    <img style={{ height: "100px", width: "100px" }} src="https://images.pexels.com/photos/33109/fall-autumn-red-season.jpg?cs=srgb&dl=pexels-pixabay-33109.jpg&fm=jpg" />
    <div style={{ paddingInline: "1em" }}>
      <p>Title</p>
      <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Eaque ipsam voluptatibus numquam hic cum maiores rerum dolor repudiandae, soluta quas, sequi nemo sunt unde voluptates! Hic consequuntur molestiae nemo eligendi.</p>
      <button style={{ backgroundColor: "gray", paddingInline: "20px", color: "white" }}>click</button>
    </div>
  </div>
</ShimmerCategoryItems>

<ShimmerCategoryItems mode='light' loading={loading} >
  <div style={{ display: "flex" }}>
    <img style={{ height: "100px", width: "100px", borderRadius: "50%" }} src="https://images.pexels.com/photos/33109/fall-autumn-red-season.jpg?cs=srgb&dl=pexels-pixabay-33109.jpg&fm=jpg" />
    <div style={{ paddingInline: "1em" }}>
      <p>Title</p>
      <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Eaque ipsam voluptatibus numquam hic cum maiores rerum dolor repudiandae, soluta quas, sequi nemo sunt unde voluptates! Hic consequuntur molestiae nemo eligendi.</p>
      <button style={{ backgroundColor: "gray", paddingInline: "20px", color: "white" }}>click</button>
    </div>
  </div>
</ShimmerCategoryItems>

Properties

PropertyTypeRequiredDefault valueDescription
itemsnumberNo1Number of items.
itemGapnumberNo30pxThe gap between the two items.
imageHeightnumber | stringNo100pxThe height of the image.
imageWidthnumber | stringNo100pxThe width of the image.
imageRoundednumberNo0emThe border radius of the image.
hasTitlebooleanNotrueWhether the category item has a title.
hasTextbooleanNotrueWhether the category item has text content.
hasButtonbooleanNotrueWhether the category item has a button.
hasImagebooleanNotrueWhether the category item has an image.
contentPosition"start" | "center" | "end"NostartThe position of the content within the category item.
loadingbooleanNotrueWhether the category item is in a loading state.
childrenReactElementNo-Element to load after loading false
mode"light" | "dark" | "custom"Yes-The mode of the category item (light, dark, or custom).
from, via, tostringYes (for mode "custom")-The colors used in custom mode.

Take it further

Take full advantage of React Shimmer Effect by experimenting with its extensive features and customization options