Usage
The Shimmer Button adds an elegant shimmering animation that creates a light reflection effect across the button surface. Perfect for premium or highlighted call-to-action buttons.Props
| Prop Name | Type | Default | Description |
|---|---|---|---|
class | string | "" | Additional CSS classes to apply to the button. |
shimmerColor | string | "#ffffff" | Color of the shimmer effect. |
shimmerSize | string | "0.05em" | Size of the shimmer effect. |
borderRadius | string | "100px" | Border radius of the button. |
shimmerDuration | string | "3s" | Duration of the shimmer animation. |
background | string | "rgba(0, 0, 0, 1)" | Background color of the button. Can be rgb or hex code. |
Examples
Basic Usage
Custom Shimmer Color
Custom Background
Custom Animation Duration
Fully Customized
Square Button
Credits
- Ported from Magic UI Shimmer Button.