Docs
Spotlight Border Glow
Spotlight Border Glow
Cards with a dynamic spotlight effect that follows your cursor and a glowing animated border.
Your AI Companion, Designed for you
Syncs with your life
Connects with Spotify, Calendar, and your DMs to understand your mood and provide relevant support.
Mood-reactive voice
Adapts to your emotional state, speaking with empathy when you need comfort and clarity when you need focus.
Works offline
Your companion stays with you even without an internet connection, because support shouldn't depend on WiFi.
Private by default
Your conversations, emotions, and data stay between you and your companion. No exceptions.
Installation
Install the required dependencies:
npm install framer-motion clsx tailwind-merge
Add the utils.ts file to the @/lib folder
Create a spotlight-border-glow.tsx component file and copy the below code.
Update the import paths to match your project setup.
Usage
import { SpotlightBorderGlow } from "@/components/breezeblocks/spotlight-border-glow";
<SpotlightBorderGlow
className="p-6"
gradientSize={120}
gradientColor="#001530"
borderColor="#ffffff1a"
gradientFrom="#0ea5e9"
gradientTo="#3b82f6"
>
<div>Card content here</div>
</SpotlightBorderGlow>
Props
Prop | Type | Description | Default |
---|---|---|---|
children | React.ReactNode | Content inside the container | (required) |
className | string | Additional custom classes | - |
gradientSize | number | Radius (px) for the spotlight & border glow | 200 |
gradientColor | string | Spotlight color | #001530 |
gradientOpacity | number | Spotlight layer opacity | 0.8 |
borderColor | string | Default border color | #ffffff1a |
gradientFrom | string | Border glow start color | #0ea5e9 |
gradientTo | string | Border glow end color | #3b82f6 |
...props | HTMLAttributes<HTMLDivElement> | Any other <div> props | - |