ValyroUI Русская версия

Cursor Glow

Glow and tilt that follow the cursor. Pro · Effects › Cursor and press feedback

Wraps any element with a specular highlight and a border glow that glide after the pointer, plus a subtle tilt. The light and the rim are painted once and moved with transforms on springs in the kit's shared frame loop — only while something moves; nothing re-renders and nothing repaints per frame. Inactive on touch and coarse pointers; with reduced motion the light follows without a spring and the tilt is dropped. Keyboard focus inside lights the border.

Installation

npx valyro-cli@latest login
npx valyro-cli@latest add cursor-glow
npm install valyro-ui-pro

import 'valyro-ui-pro/styles.css';
import { CursorGlow } from 'valyro-ui-pro';

Props

PropTypeDefault
tiltnumber6Maximum tilt towards the pointer, in degrees; 0 keeps the content flat. Applies in the Liquid Glass theme — the Vercel theme keeps cards flat and shows only the border spotlight.
sizenumber320Radius of the light around the pointer, in px.
radiusnumber | stringCorner radius of the wrapped element, so the light and border glow follow its shape. Default: the card radius.
inlinebooleanfalseLay out inline, for buttons and chips.
disabledbooleanfalseTurns the effect off: no pointer tracking, light, glow or tilt; the content renders as is.

Related components

Previous: Marquee · Next: Magnetic · All Effects