Magic Button
A button with a magic border animation effect.
Preview
Installation
Use the CLI to add this component to your project.
Usage
tsx
19 linesCopy
Examples
With Icon Left
With Icon Right
Custom Classes
Props
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | - | The text to display inside the button. |
icon | React.ReactNode | undefined | The icon component to display. |
position | 'left' | 'right' | undefined | Position of the icon relative to the title. |
handleClick | () => void | undefined | Function to execute on click. |
otherClasses | string | undefined | Additional CSS classes for custom styling. |