Emoji Cursor
Loading...
Text Cursor
Loading...
Custom Cursor
Loading...
Usage Guide
Install the clsx and tailwind-merge packages:
npm install clsx tw-merge
Next, add cn utility:
import { twMerge } from "tailwind-merge";
import { clsx, type ClassValue } from "clsx";
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
Copy and paste the following core component source for custom cursor:
Props
Prop | Type | Description | Default |
---|---|---|---|
children | ReactNode | The content to be rendered inside the component | _ |
cursor | ReactNode | A component to be shown as cursor | _ |
className | string | String of class | _ |