Docs
Border Magic
Border Magic
A mesmerizing button with an animated conic-gradient border that rotates infinitely.
Installation
Install the following dependencies:
npm install clsx tailwind-merge
Add the utils.ts file to the @/lib folder
Create a border-magic-button.tsx file and copy the below code.
Update the import paths to match your project setup.
Usage
import { BorderMagicButton } from "@/components/breezeblocks/border-magic-button";
<BorderMagicButton>Border Magic</BorderMagicButton>
Props
Prop | Type | Description | Default |
---|---|---|---|
children | React.ReactNode | The content inside the button | (required) |
className | string | Additional custom classes for styling | - |
...props | HTMLButtonProps | Any other button props | - |