Docs
Gradient Slide Button
Gradient Slide Button
A dynamic and stylish button that reveals a vibrant gradient as you hover over it.
Loading...
Installation
Install dependencies
npm install
Add utils file
lib/utils.ts
Copy the source code
gradient-slide-button.tsx
Props
Prop | Type | Description | Default |
---|---|---|---|
className | string | The class name for the component, allowing for custom styling. | - |
colorFrom | string | The starting color of the gradient that appears on hover. | "#d946ef" |
colorTo | string | The ending color of the gradient that appears on hover. | "#7c3aed" |
children | React.ReactNode | The content inside the button, typically text or icons. | undefined |