Command Palette

Search for a command to run...

Docs
SpotLight

SpotLight

An interactive spotlight effect with 3 modes — spotlight, lamp, and ambient — for premium landing pages.

Premium Component

Cinematic Lamp Effect

A top-down light beam with a sweeping cinematic highlight and suspended particles for high-end landing pages.

Features

  • 3 modes: spotlight (mouse tracking), lamp (beam), and ambient (glow).
  • Interactive: Spring-based cursor tracking for smooth movement.
  • Children support: Wraps any content and renders light effects behind/around it.
  • Particles: Floating dust particles that react to the light.

Installation

Examples

Spotlight Mode

The beam follows the mouse cursor. Best used as a container for hero sections.

The Future is Illuminated

Interactive spotlight effect that follows your cursor. Create a dynamic and immersive experience for your users.

Ambient Mode

Soft, pulsing background glow.

<SpotLight mode="ambient" color="#8b5cf6" animate={true} fill={true} />

Props

PropTypeDefaultDescription
childrenReactNodeContent to render over the light effect
colorstring#06b6d4Primary color of the beam and particles
mode"lamp" | "spotlight" | "ambient""spotlight"The visual mode of the spotlight
followMousebooleantrueWhether the beam follows cursor (spotlight mode)
intensitynumber0.60-1 brightness and opacity of the effect
sizenumber300Beam spread or spotlight radius (px)
particlesbooleantrueEnable floating dust particles
animatebooleantrueEnable ambient pulse
fillbooleanfalseAbsolute fill mode for backgrounds