Hero: spotlight
Hero on a grid canvas with a soft glow in your primary color.
Preview
The glow follows the pointer across the grid and drifts back to center when it leaves. With reduced motion turned on, it renders the plain layout.
Beta
Your product, under the spotlight
A grid canvas and a glow in your primary color. Sample copy.
Beta
Your product, under the spotlight
A grid canvas and a glow in your primary color. Sample copy.
Installation
Run this in a project that already uses shadcn/ui. It adds the component and anything it needs; the motion version also adds the plain one and the motion package.
Usage
import { HeroSpotlight } from "@/components/custom/hero-spotlight";
<HeroSpotlight
eyebrow="Beta"
title="Your product, under the spotlight"
primaryAction={{ label: "Get started", href: "/signup" }}
/>import { HeroSpotlightMotion } from "@/components/custom/hero-spotlight/hero-spotlight-motion";
<HeroSpotlightMotion title="Your product, under the spotlight" />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| title* (required) | string | – | The headline, rendered as the page's h1. |
| eyebrow | string | – | Small badge above the title. |
| description | string | – | Supporting line under the title. |
| primaryAction | { label: string; href: string } | – | Filled button. |
| secondaryAction | { label: string; href: string } | – | Outline button. |
| ...props | React.ComponentProps<"section"> | – | Any other section attribute (id, aria-*, data-*, ref) goes to the root element. |
| Prop | Type | Default | Description |
|---|---|---|---|
| title* (required) | string | – | The headline, rendered as the page's h1. |
| eyebrow | string | – | Small badge above the title. |
| description | string | – | Supporting line under the title. |
| primaryAction | { label: string; href: string } | – | Filled button. |
| secondaryAction | { label: string; href: string } | – | Outline button. |
| ...props | React.ComponentProps<"section"> | – | Any other section attribute (id, aria-*, data-*, ref) goes to the root element. |
Accessibility
- The grid and glow layers are decorative and hidden from screen readers.
- Text sits on the page background, so contrast is the same as your body text.
- The motion version follows the visitor's reduced-motion setting and never hides content before it animates.