shimmer

RSE

React Shimmer Content Block Component - Light, Dark & Custom Modes

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


Shimmer Content Block Light Mode

<ShimmerContentBlock mode="light" rounded={1} items={1} itemsGap={20} thumbnailHeight={300} thumbnailWidth={300} thumbnailRounded={1} contentDetailsPosition="start" contentDetailTextLines={8} />

Shimmer Content Block Dark Mode

<ShimmerContentBlock mode="dark" rounded={1} items={1} itemsGap={20} thumbnailHeight={300} thumbnailWidth={300} thumbnailRounded={1} contentDetailsPosition="start" contentDetailTextLines={8} />

Shimmer Content Block Custom Mode

<ShimmerContentBlock mode="custom" rounded={1} items={1} itemsGap={20} thumbnailHeight={300} thumbnailWidth={300} thumbnailRounded={1} contentDetailsPosition="start" contentDetailTextLines={8} from="#7c3aed" via="#8b5cf6" to="#7c3aed" />

Shimmer Content Block Loading Mode

<ShimmerContentBlock mode="light" loading={loading} rounded={1} items={1} itemsGap={20} thumbnailHeight={300} thumbnailWidth={300} thumbnailRounded={1} contentDetailsPosition="start" contentDetailTextLines={8} />

Properties

PropertyTypeRequiredDefault valueDescription
roundednumberNo1emThe border radius of the content block.
itemsnumberNo1The number of items in the content block.
itemsGapnumberNo20pxThe gap between items in the content block.
loadingbooleanNotrueWhether the content block is in a loading state.
childrenReactElementNo-Element to load after loading false
thumbnailHeightnumberNo200pxThe height of the thumbnail in the content block.
thumbnailWidthnumberNo200pxThe width of the thumbnail in the content block.
thumbnailBordernumberNo1The border width of the thumbnail.
thumbnailRoundednumberNo1emThe border radius of the thumbnail.
contentDetailsPosition"center" | "start" | "end"NostartThe position of the content details (e.g., text) within the content block.
contentDetailTextLinesnumberNo6The number of lines for the content details text.
mode"light" | "dark" | "custom"Yes-The mode of the content block (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