Cursor & pointer

Spotlight

Light that follows the pointer across a surface — the border starts glowing before the pointer even arrives.

Paste it into ChatGPT, Claude, Cursor or v0.
proximity160
light size320

Usage

import { SpotlightCard } from '@vizzele/react';

<div className="grid">
  {features.map((f) => (
    <SpotlightCard key={f.title} proximity={160}>
      <h3>{f.title}</h3>
      <p>{f.text}</p>
    </SpotlightCard>
  ))}
</div>

Props

PropTypeDefaultDescription
proximitynumber160Distance (px) outside the element where the light starts appearing.
springSpringConfig | SpringPreset'snappy'How the light follows.
--vz-spot-sizeCSS length320pxSize of the light (CSS variable).

Accessibility

  • Decorative only; content contrast never depends on the light.
  • Works with touch (lights where you tap); static under reduced motion is fine since nothing moves.