FINDING YOUR DIRECTION

0%

UI components / Cards

Spotlight Card: a React and Tailwind UI component

A soft light follows the cursor across the card and lights up its border.

Spotlight Card component preview

Open the live Spotlight Card preview.

About cards components

Cards group a single idea: a product, a plan, a stat or a destination. Hover motion works best when it hints that the card is interactive and reveals one extra piece of information, not when it moves the whole layout.

Install the Spotlight Card

  1. Create components/ui/spotlight-card.tsx in your React + Tailwind project.
  2. Paste the code. It only imports React; keyframes are defined inside the file.
  3. Import the named component where you need it. The default export is a ready-made demo you can delete.

Frequently asked questions

Is the Spotlight Card component free?

Yes. Anyone can open the live preview and copy the code.

What do I need to use it?

A React project with Tailwind CSS: Next.js, Vite, Lovable or Bolt. The file only imports React; its animations ship inside the component.

Is it accessible?

It uses native elements and ARIA attributes where needed, keeps keyboard focus visible and works without a mouse.

More cards

Browse all 49 UI components · Compare with 21st.dev