Usage
The Ripple Button creates an elegant ripple effect on click, providing tactile feedback to users. The ripple animation emanates from the click point, creating a modern and polished interaction.Props
| Prop Name | Type | Default | Description |
|---|---|---|---|
class | string | - | Additional CSS classes for custom styling. |
rippleColor | string | "#ADD8E6" | Color of the ripple effect. |
duration | number | 600 | Duration of the ripple animation in milliseconds. |
Events
| Event Name | Type | Description |
|---|---|---|
click | event | Click event |
Examples
Basic Usage
Custom Ripple Color
Custom Duration
With Click Handler
With Custom Styling
Credits
- Inspired by Magic UI’s Ripple Button component.
- Credits to kalix127 for porting this component.