terra vidhal

Spotlight Card

Cards

About

A surface with a pointer-following spotlight rendered as a springy radial gradient.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Spotlight Card to your project and fits it to your theme.

Code

How Spotlight Card is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

/**
 * PrequelUI Animate — MIT — https://prequeluianimate.terravidhal.me
 */

import { SpotlightCard } from "@/components/ui/spotlight-card";

export default function SpotlightCardDemo() {
  return (
    <main className="flex min-h-screen items-center justify-center bg-background px-6">
      <SpotlightCard
        alwaysOn
        color="rgba(56,189,248,0.38)"
        size={340}
        className="w-full max-w-sm p-8"
      >
        <div className="flex flex-col gap-4">
          <span className="w-fit rounded-full border border-border bg-background/60 px-3 py-1 text-xs font-medium uppercase tracking-[0.18em] text-muted-foreground">
            Spotlight
          </span>
          <h2 className="text-2xl font-semibold tracking-[-0.03em]">
            Focus on what matters
          </h2>
          <p className="text-sm leading-6 text-muted-foreground">
            A soft light follows the pointer across the surface, revealing depth
            without stealing attention.
          </p>
        </div>
      </SpotlightCard>
    </main>
  );
}

Dependencies

More by terra vidhal

View all
  • Gravity Stars Background

    Gravity Stars Background

    3
  • Marquee

    Marquee

    1
  • Firework Burst

    Firework Burst

  • Glyph Field

    Glyph Field

  • Shimmering Text

    Shimmering Text

  • Kpi Counter

    Kpi Counter

  • Gradient Text

    Gradient Text

  • Radial Progress

    Radial Progress

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.3K
  • Photo Deck

    Photo Deck

    45
  • Folded Card

    Folded Card

    45
  • Statistics Card 2

    Statistics Card 2

    309
  • Statistics Card 7

    Statistics Card 7

    335
  • Statistics Card 10

    Statistics Card 10

    303
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    715
  • Product List 01

    Product List 01

    41