Compositions
Core Primitives
Transitions
Typography
Customize
32
1
Installation
$ pnpm dlx shadcn@latest add @framecn/simulated-cursor
Usage
import { SimulatedCursor } from "@/components/framecn/simulated-cursor";<SimulatedCursor />API Reference
SimulatedCursor
| Prop | Type | Default |
|---|---|---|
points | CursorPoint[] | DEFAULT_POINTS |
color | string | "#ffffff" |
size | number | 32 |
background | string | "#0a0a0a" |
speed | number | 1 |
fps | number | 30 |
durationInFrames | number | 150 |
className | string | - |
Notes
Inline SVG cursor
The cursor is drawn as inline SVG, so you don't need to copy anything into
public/. Drop the component into any composition and it just works.