BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/Unlumen Ui/cursor

Cursor

unlumen-ui/cursor
FreeComponent

An animated cursor component that allows you to customize both the cursor and cursor follow elements with smooth animations.

Install it

npx shadcn@latest add https://ui.unlumen.com/r/cursor.json

Source

registry/components/unlumen/cursor/index.tsxui.unlumen.com/r/cursor.json
1import * as React from "react";
2import {
3 motion,
4 useMotionValue,
5 useSpring,
6 useVelocity,
7 useTransform,
8} from "motion/react";
9
10import {
11 CursorProvider as CursorProviderPrimitive,
12 Cursor as CursorPrimitive,
13 CursorFollow as CursorFollowPrimitive,
14 CursorContainer as CursorContainerPrimitive,
15 useCursor,
16 type CursorProviderProps as CursorProviderPropsPrimitive,
17 type CursorContainerProps as CursorContainerPropsPrimitive,
18 type CursorProps as CursorPropsPrimitive,
19 type CursorFollowProps as CursorFollowPropsPrimitive,
20} from "@/components/unlumen-ui/primitives/cursor-primitive";
21import { cn } from "@/lib/utils";
22
23type CursorProviderProps = Omit<CursorProviderPropsPrimitive, "children"> &
24 CursorContainerPropsPrimitive;
25
26function CursorProvider({ global, ...props }: CursorProviderProps) {
27 return (
28 <CursorProviderPrimitive global={global}>
29 <CursorContainerPrimitive {...props} />
30 </CursorProviderPrimitive>
31 );
32}
33
34type CursorProps = Omit<CursorPropsPrimitive, "children" | "asChild">;
35
36function Cursor({ className, ...props }: CursorProps) {
37 const { cursorPos } = useCursor();
38 const x = useMotionValue(0);
39 const y = useMotionValue(0);
40
41 React.useEffect(() => {
42 x.set(cursorPos.x);
43 y.set(cursorPos.y);
44 }, [cursorPos, x, y]);
45
46 const springConfig = { damping: 25, stiffness: 300 };
47 const smoothX = useSpring(x, springConfig);
48 const smoothY = useSpring(y, springConfig);
49
50 const velocityX = useVelocity(smoothX);
51 const velocityY = useVelocity(smoothY);
52
53 // tilt the cursor based on velocity for a gravity feel
54 const rotateVelocity = useTransform([velocityX, velocityY], ([vx, vy]) => {
55 const rx = ((vx as number) / 1000) * 30;
56 const ry = ((vy as number) / 1000) * 30;
57 return Math.max(-45, Math.min(45, rx + ry));
58 });
59 const rotate = useSpring(rotateVelocity, { damping: 15, stiffness: 200 });
60
61 const scale = useTransform([velocityX, velocityY], ([vx, vy]) => {
62 const velocity = Math.sqrt((vx as number) ** 2 + (vy as number) ** 2);
63 return 1 - Math.min(velocity / 2000, 0.1);
64 });
65
66 return (
67 <CursorPrimitive
68 style={{
69 top: smoothY,
70 left: smoothX,
71 transform: "translate(-4.5%, -11%)", // Override default centering to align tip
72 }}
73 {...props}
74 >
75 <motion.svg
76 className={cn("size-6 text-foreground", className)}
77 xmlns="http://www.w3.org/2000/svg"
78 viewBox="0 0 40 40"
79 style={{
80 rotate,
81 scale,
82// … truncated

What it pulls in

npm packages

  • motion

Other registry items

  • @unlumen-ui/cursor-primitive

Files it writes

  • registry/components/unlumen/cursor/index.tsx

Facts

Registry
Unlumen Ui
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-12
Last confirmed
yesterday

Go to the source

Docs on Unlumen Ui ui.unlumen.com leovvx/unlumen-ui-docs on GitHub Raw registry item This item as JSON

More from Unlumen Ui

All 233 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AI Chatai-chatUnlumen UiComponentsPaid2 deps
Vercel Animate Countanimate-countUnlumen UiComponentsFree1 dep
Animate Digitsanimate-digitsUnlumen UiComponentsFree1 dep
Animated Inputanimate-text-input-typingUnlumen UiComponentsPaid1 dep
Animated Listanimated-listUnlumen UiComponentsFree1 dep
Apple Switchapple-switchUnlumen UiComponentsFree1 dep
Aurora Barsaurora-barsUnlumen UiComponentsFree1 dep
Aurora Bluraurora-blurUnlumen UiComponentsFree2 deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

KitGrade

SaaS starter kits, scored from measured facts

kitgrade.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex