Retro Grid Hero
A centered hero over a receding retro grid, with a gradient headline and one action.
Installation
npx shadcn@latest add @venusui/hero-04Run this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.
Files added to your project
Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.
@/components/ui/retro-grid.tsxfrom retro-grid@/components/ui/gradient-text.tsxfrom gradient-text@/components/ui/slide-arrow-button.tsxfrom slide-arrow-button@/components/hero-04.tsx
Usage
The code behind the preview above.
hero-04-demo.tsx
import { Hero04 } from "@/components/hero-04"
export default function Hero04Demo() {
return <Hero04 />
}
API reference
No props. Edit the headline, text and button label in the file.
Requirements
- VenusUI
retro-grid,gradient-textandslide-arrow-button. The CLI installs them with their CSS. - React 19 and Tailwind CSS v4.
Customization
- Keep the gradient headline short. Two or three words read best.
- Point the button at your sign-up: wrap it in a link or add an
onClick.
Accessibility
- One
h1; the grid is decorative. - Grid and gradient stop moving with reduced motion.
Troubleshooting
- The grid doesn’t move.
- Check that the
retro-gridkeyframes are in your CSS (the CLI adds them). Unknown registry "@venusui"- Your shadcn CLI couldn’t find the namespace in the shadcn registry index. Use the latest CLI (
npx shadcn@latest), install by URL, or register it with its address:npx shadcn@latest registry add @venusui=https://venusui.com/r/{name}.json. No components.json found- Run
npx shadcn@latest initin your project first.