Spotlight Cards
A grid of cards whose border lights up where the cursor passes, with a single light shared across all of them.
- Plan
- Free · MIT
- Dependencies
- React only
- Props
- 9 (4 adjustable)
Free forever
MIT license, for personal and commercial projects. See installation
Zero dependencies
Just React. No GSAP, no Three, and no surprises in your page weight.
Real TypeScript
Typed props and code that's a pleasure to read.
Light on mobile
It pauses off-screen and looks after your visitors' battery.
See it before you copy it
Tweak every prop live and copy the code once you love it.
Respects reduced motion
Anyone who asks for it gets a still frame, just as pretty.
Yours forever
MIT license on the free ones and unlimited projects with Pro.
Made with Furin: Pill Nav · Metal Button · Copy Morph
Props
| Prop | Type | Default | Description |
|---|---|---|---|
items | { title: string; text: string; icon?: ReactNode }[] | "6 sample cards" | Cards with a title, text and optional icon. |
sample | { title?: string; text?: string }[] | "6 sample cards" | Title and text of each of the 6 sample cards, keeping their icons (only visible if you omit items and children). |
columns | number | 3 | Number of grid columns; on narrow screens it reduces on its own. |
color | string | "#7C8BFF" | Color of the light. |
radius | number | 260 | Radius of the light, in px. |
gap | number | 16 | Space between cards, in px. |
className | string | "" | Extra class for the container. |
style | CSSProperties | undefined | Extra styles; also useful for changing the card colors via CSS variables. |
children | ReactNode | undefined | Your own cards: each child is wrapped in a card (if there are no items). |
Installation
Install it
1Install the package
npm i furin-ui2Import it
import { SpotlightCards } from "furin-ui";Also with pnpm add furin-ui, yarn add furin-ui or bun add furin-ui. Each component ships its own CSS and imports it for you.
Dependencies
- React
- 18 or later
- Other libraries
- none
- License
- MIT
Each file ships its own CSS: there's nothing else to install.