Hero
Centered landing-page hero with an optional badge and up to two links.
Preview
The title's words rise in one after another, then the description and buttons follow. With reduced motion turned on, it renders the plain layout.
Ship your landing page today
Copy the sections you need and make them yours.
New
Ship your landing page today
Copy the sections you need and make them yours.
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 { Hero } from "@/components/custom/hero";
<Hero
eyebrow="New"
title="Ship your landing page today"
description="Copy the sections you need and make them yours."
primaryAction={{ label: "Get started", href: "/signup" }}
secondaryAction={{ label: "Learn more", href: "/docs" }}
/>import { HeroMotion } from "@/components/custom/hero/hero-motion";
<HeroMotion
eyebrow="New"
title="Ship your landing page today"
description="Copy the sections you need and make them yours."
primaryAction={{ label: "Get started", href: "/signup" }}
/>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 title is an h1, so use one Hero per page.
- The motion version follows the visitor's reduced-motion setting and never hides content before it animates.