An animated cursor component that allows you to customize both the cursor and cursor follow elements with smooth animations.
Made by Léo · Credits: imskyleenInstallation
Usage
API Reference
CursorProvider
childrenReact.ReactNode—The children of the CursorProvider
global?booleanfalseWhether the cursor is global
...props?HTMLMotionProps<"div">—The props of the CursorContainer
Cursor
asChild?booleanfalseChange the default rendered element for the one passed as a child, merging their props and behavior.
...props?HTMLMotionProps<"div">—The props of the CursorContainer
CursorFollow
asChild?booleanfalseChange the default rendered element for the one passed as a child, merging their props and behavior.
side?CursorFollowSidebottomThe side of the CursorFollow
sideOffset?number15The side offset of the CursorFollow
align?CursorFollowAlignendThe align of the CursorFollow
alignOffset?number5The align offset of the CursorFollow
transition?SpringOptions{ stiffness: 500, damping: 50, bounce: 0 }The transition of the CursorFollow
...props?HTMLMotionProps<"div">—The props of the CursorFollow