shimmer

RSE

React Shimmer Section Header Component - Light, Dark & Custom Modes

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


Shimmer Section Header Light Mode

<ShimmerSectionHeader center={true} mode="light" />

<ShimmerSectionHeader center={false} mode="light" />

Shimmer Section Header Dark Mode

<ShimmerSectionHeader center={true} mode="dark" />

<ShimmerSectionHeader center={false} mode="dark" />

Shimmer Section Header Custom Mode

<ShimmerSectionHeader center={true} mode="custom" from="#7c3aed" via="#8b5cf6" to="#7c3aed" />

<ShimmerSectionHeader center={false} mode="custom" from="#7c3aed" via="#8b5cf6" to="#7c3aed" />

Shimmer Section Header Loading Mode

<ShimmerSectionHeader center={true} mode="light" loading={loading} >
<div style={{ textAlign: "center" }}>
<p >This is title</p>
<p style={{ fontSize: "10px" }}>Lorem ipsum, dolor sit amet consectetur adipisicing eli dolor sit amet consectetur adipisicing elit adipisicing</p>
<p style={{ fontSize: "10px" }}>Lorem ipsum, dolor sit amet consectetur adipisicing elit adipisicing adipisicing elit adipi</p>
<p style={{ fontSize: "10px" }}>Lorem ipsum, dolor sit amet adipisicing elit adipisicing consectet.</p>
</div>
</ShimmerSectionHeader>

<ShimmerSectionHeader center={false} mode="light" loading={loading} >
<div>
<p>This is title</p>
<p style={{ fontSize: "10px" }}>Lorem ipsum, dolor sit amet consectetur adipisicing eli dolor sit amet consectetur adipisicing elit adipisicing</p>
<p style={{ fontSize: "10px" }}>Lorem ipsum, dolor sit amet consectetur adipisicing elit adipisicing adipisicing elit adipi</p>
<p style={{ fontSize: "10px" }}>Lorem ipsum, dolor sit amet adipisicing elit adipisicing consectet.</p>
</div>
</ShimmerSectionHeader>

Properties

PropertyTypeRequiredDefault valueDescription
titleHeightnumberNo16pxThe height of the title.
titleWidthnumber[]No[40]The width(%) of the title.
subtitleHeightnumberNo8pxThe height of the subtitle.
subtitleWidthnumber[]No[80, 70, 60]The width(%) of the subtitle.
titleBordernumberNo1pxThe border width of the title.
subtitleBordernumberNo1pxThe border width of the subtitle.
titleRoundednumberNo1emThe border radius of the title.
subtitleRoundednumberNo1emThe border radius of the subtitle.
titleLinenumberNo1The number of lines for the title.
subtitleLinenumberNo3The number of lines for the subtitle.
titleGapnumberYes8The gap between title elements.
subtitleGapnumberYes6The gap between subtitle elements.
centerbooleanNofalseWhether to center align the elements.
loadingbooleanNotrueWhether the section header is in a loading state.
childrenReactElementNo-Element to load after loading false
mode"light" | "dark" | "custom"Yes-The mode of the div (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