Hero: split
Two-column hero with copy on one side and your product image or component on the other.
Preview
The copy rises in, the media floats up and tilts a few degrees toward a mouse pointer. There is no tilt on touch screens. With reduced motion turned on, it renders the plain layout.
New
Know which features your users love
Product analytics without the setup. Sample copy.
Weekly active usersSample data
New
Know which features your users love
Product analytics without the setup. Sample copy.
Weekly active usersSample data
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 { HeroSplit } from "@/components/custom/hero-split";
<HeroSplit
title="Know which features your users love"
description="Product analytics without the setup."
primaryAction={{ label: "Start free", href: "/signup" }}
media={<img src={screenshotUrl} alt="The dashboard" />}
mediaPosition="right"
/>import { HeroSplitMotion } from "@/components/custom/hero-split/hero-split-motion";
<HeroSplitMotion
title="Know which features your users love"
primaryAction={{ label: "Start free", href: "/signup" }}
media={<img src={screenshotUrl} alt="The dashboard" />}
/>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. |
| media* (required) | ReactNode | – | Image, video or component beside the copy. |
| mediaPosition | "left" | "right" | "right" | Media side from the lg breakpoint. Phones always show the copy first. |
| ...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. |
| media* (required) | ReactNode | – | Image, video or component beside the copy. |
| mediaPosition | "left" | "right" | "right" | Media side from the lg breakpoint. Phones always show the copy first. |
| ...props | React.ComponentProps<"section"> | – | Any other section attribute (id, aria-*, data-*, ref) goes to the root element. |
Accessibility
- Give the media its own text alternative (alt text or an aria-label).
- The motion version follows the visitor's reduced-motion setting and never hides content before it animates.