BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/rivelle/cursor-lens

Cursor Lens

rivelle/cursor-lens
FreeComponent

A circular pointer magnifier for arbitrary React content.

Install it

npx shadcn@latest add https://rivelle.dev/r/cursor-lens.json

Source

registry/nova/effects/cursor-lens.tsxrivelle.dev/r/cursor-lens.json
1"use client";
2
3import * as React from "react";
4
5import { cn } from "@/lib/utils";
6
7type CursorLensProps = React.ComponentProps<"div"> & {
8 lensClassName?: string;
9 size?: number;
10 zoom?: number;
11};
12
13function CursorLens({
14 children,
15 className,
16 lensClassName,
17 onPointerEnter,
18 onPointerLeave,
19 onPointerMove,
20 size = 180,
21 zoom = 1.75,
22 ...props
23}: CursorLensProps) {
24 const [active, setActive] = React.useState(false);
25 const [position, setPosition] = React.useState({ x: 0, y: 0 });
26 const [bounds, setBounds] = React.useState({ width: 0, height: 0 });
27 const frame = React.useRef<number | null>(null);
28
29 React.useEffect(
30 () => () => {
31 if (frame.current !== null) cancelAnimationFrame(frame.current);
32 },
33 [],
34 );
35
36 return (
37 <div
38 className={cn(
39 "relative isolate cursor-none overflow-hidden rounded-[2rem] border border-foreground/10 bg-card",
40 className,
41 )}
42 data-slot="cursor-lens"
43 onPointerEnter={(event) => {
44 const rect = event.currentTarget.getBoundingClientRect();
45 setBounds({ width: rect.width, height: rect.height });
46 setActive(true);
47 onPointerEnter?.(event);
48 }}
49 onPointerLeave={(event) => {
50 setActive(false);
51 onPointerLeave?.(event);
52 }}
53 onPointerMove={(event) => {
54 const rect = event.currentTarget.getBoundingClientRect();
55 const next = {
56 x: event.clientX - rect.left,
57 y: event.clientY - rect.top,
58 };
59 if (frame.current !== null) cancelAnimationFrame(frame.current);
60 frame.current = requestAnimationFrame(() => setPosition(next));
61 onPointerMove?.(event);
62 }}
63 {...props}
64 >
65 <div className="h-full">{children}</div>
66 <div
67 aria-hidden="true"
68 className={cn(
69 "pointer-events-none absolute left-0 top-0 z-20 overflow-hidden rounded-full border border-background/50 bg-background shadow-[0_18px_70px_-20px_var(--foreground)] transition-opacity duration-200 will-change-transform [backface-visibility:hidden] motion-reduce:hidden",
70 active ? "opacity-100" : "opacity-0",
71 lensClassName,
72 )}
73 style={{
74 height: size,
75 transform: `translate3d(${position.x - size / 2}px, ${position.y - size / 2}px, 0)`,
76 width: size,
77 }}
78 >
79 <div
80 className="absolute left-0 top-0 will-change-transform [backface-visibility:hidden]"
81 style={{
82// … truncated

What it pulls in

Other registry items

  • @rivelle/utils

Files it writes

  • registry/nova/effects/cursor-lens.tsx

Facts

Registry
rivelle
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 rivelle rivelle.dev w3cproject/rivelle-ui on GitHub Raw registry item This item as JSON

More from rivelle

All 83 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AccordionaccordionrivelleComponentsFree2 deps
AlertalertrivelleComponentsFree1 dep
Alert Dialogalert-dialogrivelleComponentsFree1 dep
Aspect Ratioaspect-ratiorivelleComponentsFree1 dep
AvataravatarrivelleComponentsFree1 dep
BadgebadgerivelleComponentsFree2 deps
BreadcrumbbreadcrumbrivelleComponentsFree2 deps
ButtonbuttonrivelleComponentsFree2 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

ToolDrift

What the AI coding tools changed last night

tooldrift.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 ToolDrift

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 ToolDrift

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 ToolDrift

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