Skip to content

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

PropTypeDefaultDescription
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).
columnsnumber3Number of grid columns; on narrow screens it reduces on its own.
colorstring"#7C8BFF"Color of the light.
radiusnumber260Radius of the light, in px.
gapnumber16Space between cards, in px.
classNamestring""Extra class for the container.
styleCSSPropertiesundefinedExtra styles; also useful for changing the card colors via CSS variables.
childrenReactNodeundefinedYour own cards: each child is wrapped in a card (if there are no items).

Installation

Install it

1Install the package

npm i furin-ui

2Import 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.

Keep exploring

  • A bell with sound and a notification count.

    Interaction

  • A radial menu that fans open.

    Interaction

  • A confirmation button with an ink stamp.

    Interaction