Spotlight Card

New

A glow and a lit border that follow the pointer

$ npx @hritik-sharmaa/repeat-ui add card-spotlight-card
Category
Card
Added
Nov 1, 2026
Version
1.0.0
Packages
None
Flavors
TS · JS · Tailwind · CSS
Live preview

Copy

Find a component you like and copy it straight from the page.

Paste

Drop it into your app. It is your code now, so change anything.

Repeat

Come back for the next one. Every piece fits with the last.

Customize
320px
24px
import CardSpotlightCard from "@/components/repeat-ui/card-spotlight-card/preview";

<CardSpotlightCard title="Copy" description="Find a component you like and copy it straight from the page." />

Installation

  1. Run the command

    Adds the files and installs any packages they need. Works with npm, pnpm, yarn and bun.

    $ npx @hritik-sharmaa/repeat-ui add card-spotlight-card --variant ts-tailwind
  2. Use it

    The files are in components/repeat-ui/card-spotlight-card/.

    import CardSpotlightCard from "@/components/repeat-ui/card-spotlight-card/preview";
    
    export default function Page() {
      return <CardSpotlightCard />;
    }

Props

PropTypeDefaultDescription
titlestring"Copy"Card heading.
descriptionstring"Find a component you like and copy it straight from the page."Card text.
iconReactNode-Shown in a tinted tile above the title.
childrenReactNode-Extra content under the text.
glowColorstring"#fa5f1b"Colour of the light and the lit border.
backgroundstring"#0a0a0a"Card background.
textColorstring"#fafafa"Text colour.
spotlightSizenumber320Diameter of the light, in pixels.
radiusnumber24Corner radius in pixels.
borderGlowbooleantrueLight up the border near the pointer.
classNamestring""Extra classes for the root element.

More card

See all