Preet Suthar

Spotlight Card

Features 246

About

Create a spotlight effect on hover on a card component.

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

import { FaBolt } from "react-icons/fa";
import { SpotlightCard } from "@/components/ui/spotlight-card";

const DemoOne = () => {
  return (
    <div className="flex w-full h-screen justify-center items-center">
      <SpotlightCard
        className="magic-card flex flex-col gap-4 max-w-[30rem] rounded-4xl bg-white   border border-primary/10 shadow-2xl/10"
        spotlightColor="#ff006630"
      >
        <div className="text-2xl font-bold flex items-center gap-2">
          <FaBolt className="text-yellow-500" />
          <span>Lighting Fast</span>
        </div>
        <div className="text-muted-foreground">
          Optimized for performance with minimal bundle size. Build fast, responsive
          websites without compromise.
        </div>
      </SpotlightCard>
    </div>
  );
};

export { DemoOne };

More by Preet Suthar

View all
  • Modern & Stunning sign in

    Modern & Stunning sign in

    1.6K
  • Shining Text

    Shining Text

    1.5K
  • Magic Text

    Magic Text

    845
  • Toolbar

    Toolbar

    822
  • Hero 2

    Hero 2

    818
  • Typewriter Text

    Typewriter Text

    769
  • AI Chat Input

    AI Chat Input

    734
  • Full Screen Signup

    Full Screen Signup

    731

More in Features

View all
  • Features 8

    Features 8

    3.1K
  • Features 2

    Features 2

    322
  • Grid Feature Cards

    Grid Feature Cards

    1.9K
  • Feature Sections

    Feature Sections

    52
  • Feature with advantages

    Feature with advantages

    278
  • Feature Section with card gradient

    Feature Section with card gradient

    169
  • Feature Modern

    Feature Modern

    17
  • Features 4

    Features 4

    368