ComponentsFeedback
Ripple
Ripple component adds a material design-like ripple effect to elements.
Ripple
Ripple component adds a material design-like ripple effect to elements when they are clicked. It creates a visual feedback that enhances the user experience by providing a tactile response to interactions.
Usage
button
Custom Color
You can customize the color of the ripple effect.
button
Implementation Notes
For the ripple effect to work properly, the parent element should have:
position: relative
- To position the ripple correctlyoverflow: hidden
- To contain the ripple within the element
Props
Prop | Type | Default | Description |
---|---|---|---|
color | string | '#eee' | The color of the ripple effect |
ref | React.RefObject | - | Ref to access the addRipple method |