ThatDesignUIOriginalInteractive preview
Hero with cursor spotlight
A dark hero on a faded grid with a violet spotlight that follows the cursor, a shimmering headline word, an email capture that validates, and a floating product window.
- Category
- Heroes
- Platform
- Responsive
Interactive componentClick through it, resize it, or switch states. It’s real UI, not a screenshot.Default state
Use this component
Free to use. It works on its own in any React and Tailwind project, so you can add it with one command, paste the code, or hand the prompt to your coding agent.
FreeReact 18+Tailwind v3.4 or v4No extra packages
1. Add it with the shadcn CLI
npx shadcn@latest add https://www.thatdesignui.com/r/hero-spotlight.json2. Use it
Every prop is optionalapp/page.tsx
import HeroSpotlight from "@/components/hero-spotlight";
export default function Page() {
return <HeroSpotlight />;
}Prefer to paste it yourself? Open the .
Under the hood
How it’s built
What’s inside
- A #07070b section with a 48px grid faded into an ellipse and a 520px violet radial spotlight that follows the pointer.
- Centered: an announcement pill with a violet 'New' tag, a 64px semibold headline (tight -0.045em tracking) whose last word shimmers in a violet-pink-cyan gradient, and a muted 17px subhead; each rises in with a short stagger.
- An email field and white 'Get early access' button in one translucent rounded bar; a row of four gradient avatars and a short line of social proof below.
- At the bottom, a dark app window (traffic dots, sidebar lines, three stat tiles and a violet area chart) rises up with a violet glow.
How it behaves
- Submitting an invalid address shakes the bar, outlines it red and shows an error linked with aria-describedby; typing clears it.
- A valid address shows a spinner and 'Joining…', then a green 'You're on the list' confirmation.
- The spotlight follows the pointer anywhere in the section.
- Shimmer, shake and rise animations are off under reduced motion.



