Spotlight cards
A grid of feature cards with a gradient hairline border.
Preview
A soft glow in your primary color follows the pointer across the whole grid, each card's border lights up where the pointer is nearest, and nearby cards lean a degree or two toward it. With reduced motion turned on, it renders the plain layout.
Built for launch day
Sample features.
Stores emails
The waitlist form posts to your own route. Sample feature.
Takes a checkout link
Point any plan's button at your payment page.
Blocks spam
A honeypot field catches bots without a puzzle.
One command
Install any section with the shadcn CLI.
Your theme
Every color comes from your shadcn tokens.
Optional motion
Add the motion file where it helps, skip it where it doesn't.
Built for launch day
Sample features.
Stores emails
The waitlist form posts to your own route. Sample feature.
Takes a checkout link
Point any plan's button at your payment page.
Blocks spam
A honeypot field catches bots without a puzzle.
One command
Install any section with the shadcn CLI.
Your theme
Every color comes from your shadcn tokens.
Optional motion
Add the motion file where it helps, skip it where it doesn't.
Installation
Run this in a project that already uses shadcn/ui. It adds the component and anything it needs; the motion version also adds the plain one and the motion package.
Usage
import { SpotlightCards } from "@/components/custom/spotlight-cards/spotlight-cards";
<SpotlightCards
title="Built for launch day"
columns={3}
items={[{ title: "Stores emails", description: "The form posts to your own route.", icon: <Mail /> }]}
/>import { SpotlightCardsMotion } from "@/components/custom/spotlight-cards/spotlight-cards-motion";
<SpotlightCardsMotion title="Built for launch day" items={items} />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| items* (required) | { title: string; description: string; icon?: ReactNode }[] | – | Cards in reading order. Pass icons as elements (<Mail />). |
| columns | 2 | 3 | 3 | Columns from the lg breakpoint. |
| title / description | string | – | Heading (h2) and line under it. |
| ...props | React.ComponentProps<"section"> | – | Any other section attribute (id, aria-*, data-*, ref) goes to the root element. |
| Prop | Type | Default | Description |
|---|---|---|---|
| items* (required) | { title: string; description: string; icon?: ReactNode }[] | – | Cards in reading order. Pass icons as elements (<Mail />). |
| columns | 2 | 3 | 3 | Columns from the lg breakpoint. |
| title / description | string | – | Heading (h2) and line under it. |
| ...props | React.ComponentProps<"section"> | – | Any other section attribute (id, aria-*, data-*, ref) goes to the root element. |
Accessibility
- Cards are list items with an h3 each; icons are decorative and hidden from screen readers.
- The glow and tilt are decoration for mouse and pen. Touch and keyboard users get the same content, and reduced motion turns both off.
- The motion version follows the visitor's reduced-motion setting and never hides content before it animates.