Spotlight Card
A dark elevated surface that illuminates border and inner surfaces dynamically based on mouse pointer coordinates.
Spotlight Shader
Pointer-aware radial illumination calculating Euclidean coordinates in real time.
Coordinates: Hardware Accelerated
Installation
Add the component directly to your repository using shadcn CLI:
npx shadcn@latest add Surajmaurya1/easyui/spotlight-card
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| spotlightColor | string | 'rgba(56, 189, 248, 0.08)' | Inner ambient radial color |
| spotlightSize | number | 350 | Radius of spotlight effect in pixels |