Replies: 1 comment
-
@milosptr |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Overview
Currently, the shimmer effect is driven by the single
shimmerBackgroundColor
prop, which forces a hardcoded gradient composed of the provided color and white. This limits design flexibility, as it always renders a gradient of the passed color fading into white.Proposal
Introduce a new prop named
shimmerBackgroundColors
(instead ofshimmerBackgroundColor
) that accepts an array of colors (for example, two colors) to define the gradient used in the shimmer effect. When provided, the shimmer layer’s colors should be set to the values from this array, thereby allowing fully customizable gradients. The API should remain backward compatible by falling back to the current behavior if no custom array is provided.Expected Behavior
shimmerBackgroundColor
and the default gradient (using white).Benefits
Example Usage
This enhancement would enable a more dynamic and visually appealing shimmer effect while maintaining simplicity and backward compatibility. I look forward to your feedback on this proposal.
Beta Was this translation helpful? Give feedback.
All reactions