shimmer

RSE

React Shimmer Button Component - Light, Dark & Custom Modes

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


Shimmer Button Light Mode

<ShimmerButton size="sm" mode="light" />

<ShimmerButton size="md" mode="light" />

<ShimmerButton size="lg" mode="light" />

Shimmer Button Dark Mode

<ShimmerButton size="sm" mode="dark" />

<ShimmerButton size="md" mode="dark" />

<ShimmerButton size="lg" mode="dark" />

Shimmer Button Custom Mode

<ShimmerButton size="sm" mode="custom" from="#7c3aed" via="#8b5cf6" to="#7c3aed" />

<ShimmerButton size="md" mode="custom" from="#7c3aed" via="#8b5cf6" to="#7c3aed" />

<ShimmerButton size="lg" mode="custom" from="#7c3aed" via="#8b5cf6" to="#7c3aed" />

Shimmer Button Loading Mode

<ShimmerButton size="sm" mode="light" rounded={0.4} loading={loading}>
	<button style={{ backgroundColor: "red", height: "30px", width: "80px", borderRadius: "0.4em" }}>click me</button>
</ShimmerButton>

<ShimmerButton size="md" mode="light" rounded={0.4} loading={loading}> <button style={{ backgroundColor: "red", height: "40px", width: "100px", borderRadius: "0.4em" }}>click me</button> </ShimmerButton>

<ShimmerButton size="lg" mode="light" rounded={0.4} loading={loading}> <button style={{ backgroundColor: "red", height: "50px", width: "120px", borderRadius: "0.4em" }}>click me</button> </ShimmerButton>

Properties

PropertyTypeRequiredDefault valueDescription
size"lg" | "md" | "sm"NomdThe size of the button.
heightnumberNo40pxThe height of the button.
widthnumberNo100pxThe width of the button.
bordernumberNo1pxThe border width of the button.
roundednumberNo0.1emThe border radius of the button.
loadingbooleanNotrueWhether the button is in a loading state.
childrenReactElementNo-Element to load after loading false
mode"light" | "dark" | "custom"Yes-The mode of the button (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