Top Button
This is a simple button component that redirects user to top of the window.
Installation
1. Dependencies
npm install clsx tailwind-merge lucide-react
2. Paste inside @/lib/utils.ts
import { clsx } from "clsx";
import { twMerge } from "tailwind-merge";
export function cn(...inputs: Parameters<typeof clsx>) {
return twMerge(clsx(...inputs));
}
3. Copy Top Button Code
Loading...
Copy Top Button Code
TopButton Props
Name | Type | Required | Default | Description |
---|---|---|---|---|
className | string | No | undefined | Additional class names for custom styling of the button. |