Spotlight Cards

Interactive spotlight cards component with dynamic mouse-following effects, featuring proximity spotlight, hover focus, and cursor flow gradients. Creates engaging card layouts with radial gradient lighting effects that respond to user interactions.

grid

grid

grid

grid

grid

Track Goals

Keeping track of your goals helps you stay organized, motivated, and focused. Regularly monitoring your progress ensures you stay on course.

Installation

npx uilayouts@latest add spotlight

Control the border by chaning padding p-[2px] from spotlight.tsx file:

spotlight.tsx
<div
onMouseMove={handleMouemove}
onMouseEnter={() => CursorFlowGradient && setIsHovered(true)}
onMouseLeave={() => setIsHovered(false)}
ref={boxWrapper}
className={cn(
className,
' relative rounded-lg justify-center items-center p-[2px] bg-[#ffffff15] overflow-hidden'
)}
></div>

Props

PropTypeDefaultDescription
childrenReactNodeThe content to be rendered inside the Spotlight component.
classNamestringOptional CSS class for styling the Spotlight component.
ProximitySpotlightbooleantrueWhether to enable proximity-based spotlight effect.
HoverFocusSpotlightbooleanfalseWhether to enable spotlight effect on hover or focus.
CursorFlowGradientbooleantrueWhether to enable gradient flow based on cursor movement.

Examples

Spotlight

grid

Create Group Effortlessly

Seamless chats, crystal-clear videos, and
premium audio quality

FocuseHover

grid

Subscriber Growth

Experience a significant boost in your subscriber
count, achieving 3x growth.

Proximity

grid

Seamless Animation For All

Effortlessly connect with today's leading technologies including React, TypeScript, Next.js, Tailwind CSS, Motion, and Cypress.