Docs
Button with Link
Button with Link
Displays a beautiful animation with Link Button.
Installation
Install the following dependencies:
npm install @radix-ui/react-slot class-variance-authority @radix-ui/react-iconsCopy and paste the cn util code into your project.
import { ClassValue, clsx } from "clsx"
import { twMerge } from "tailwind-merge"
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}
Copy and paste the Button Link code into your project.
API Reference
| Prop | Type | Description |
|---|---|---|
| size | string | "default" | "sm" | "lg"| "icon" |
| className | string | the class name |
