All components

Cursor Spotlight

A component for displaying a cursor spotlight effect.

Default
Live-tune mode, trail, click pulse, color, and sizing in the controls panel. Move your cursor to preview the effect.

Sign in to view this example's source code.

Sign in

Controls

mode
hideNativeCursor
showTrail
showClickPulse
color
size
glowSize
ringSize
spotlightOpacity
trailLength
smoothing

Props

NameTypeDefaultDescription
enabledbooleantrueWhether the cursor spotlight is enabled
modestringcomboThe mode of the cursor spotlight
showTrailbooleantrueWhether to show the trail of the cursor spotlight
showClickPulsebooleantrueWhether to show the click pulse of the cursor spotlight
hideNativeCursorbooleanfalseWhether to hide the native cursor
respectReducedMotionbooleantrueWhether to respect reduced motion
sizenumber220The size of the cursor spotlight
glowSizenumber320The glow size of the cursor spotlight
ringSizenumber58The ring size of the cursor spotlight
trailLengthnumber8The length of the trail of the cursor spotlight
smoothingnumber0.18The smoothing of the cursor spotlight
colorstringrgb(34 211 238)The color of the cursor spotlight
spotlightOpacitynumber0.72The opacity of the cursor spotlight
zIndexnumber9999The z-index of the cursor spotlight
classNamestringundefinedThe class name of the cursor spotlight