Interactive 3D glowing light sphere cluster with physics attraction and mouse repulsion.
1. Install Required Packages
npm install three lucide-react react react-dom2. CLI Component Add
npx @apexphase/ui add ball-lights| Prop | Type | Default | Description |
|---|---|---|---|
glowIntensity | number | 1.0 | Volumetric point light radiant intensity multiplier driving core subsurface glow. |
themeColor | 'greymac' | 'emerald' | 'amber' | 'cyan' | 'obsidian' | 'amethyst' | 'custom' | 'greymac' | Curated optical color preset calculating subsurface scattering wavelengths and ACES tonemapping. |
customLightColor | string | '#cd56ff' | Custom hexadecimal light color used when themeColor is set to 'custom'. |
roughness | number | 0.0 | Physical micro-surface roughness affecting specular highlight spread across sphere instances. |
metalness | number | 1.0 | MeshPhysicalMaterial metalness property controlling dielectric vs conductor reflection response. |
sssScale | number | 10.0 | Subsurface scattering thickness scale uniform modulating light penetration distance. |
sssPower | number | 2.0 | Subsurface scattering thickness power exponent controlling falloff sharpness inside the geometry. |
exposure | number | 1.0 | ACES Filmic tone mapping exposure factor calibrating HDR dynamic range and luminance headroom. |
count | number | 50 | Total number of instanced spheres generated in the physics cluster simulation. |
leadSize | number | 2.2 | Radius scalar of the primary central anchor sphere housing the point light driver. |
attraction | number | 0.15 | Centripetal gravitational pull factor pulling orbiting satellite spheres towards anchor zero. |
friction | number | 0.9975 | Inertial velocity dampening multiplier applied per simulation tick to stabilize kinetic oscillation. |
cursorEnabled | boolean | true | Enables 3D raycasted cursor tracking to displace and drag the sphere cluster across the viewport. |
emblemText | string | 'ApexPhase' | High-DPI illuminated serif typography rendered to the center chromatic caustic plane. |
causticSpeed | number | 1.0 | Temporal frequency multiplier controlling volumetric caustic ray oscillation speed. |
chromaticShift | number | 1.0 | Radial chromatic aberration offset distance separating red, cyan, and magenta diffraction channels. |
emblemVisible | boolean | true | Toggles visibility of the central illuminated emblem and volumetric caustic rays. |
Don't miss them.


