---
title: "Split Hero Module for Sanity + Next.js"
description: "A two-column hero with an image beside rich text copy. Place the image left or right on desktop, and before or after the copy on mobile."
---

# Hero (split) module

A two-column hero with an image beside rich text copy and call-to-actions.

[View source on GitHub](https://github.com/nuotsu/sanitypress/tree/main/src/modules/hero.split) (schema + React component)

## Module fields

| Field | Type | Description |
| --- | --- | --- |
| `eyebrow` | string | Small label shown above the copy. |
| `content` | Portable Text | Hero copy. Supports rich text and Custom HTML blocks. |
| `ctas` | array of `cta` | Call-to-actions below the copy. |
| `image` | image | See image fields below. |
| `attributes` | `module-attributes` | Shared by every module: `uid` (HTML id for deep links), `hidden`, and `scopedCss`. |

## Image fields

| Field | Type | Description |
| --- | --- | --- |
| `alt` | string | Alt text for the image. |
| `loading` | `lazy` \| `eager` | Defaults to `lazy`. Use `eager` for heroes above the fold. |
| `onRight` | boolean | Places the image on the right on desktop. |
| `afterContent` | boolean | Places the image after the copy on mobile. |

Eyebrow

## Demo: Image on left

The default: image on the left on desktop, above the copy on mobile.

[Action CTA](#)

[Action outline CTA](#)

[Ghost CTA](#)

[Link CTA](#)

![SanityPress baseball cap](https://cdn.sanity.io/images/cyu7k2r0/production/5f0eb458877c640049b17ee0f5579137d086160d-677x369.png)

Eyebrow

## Demo: Image on right

`onRight` moves the image to the right on desktop.

[Action CTA](#)

[Action outline CTA](#)

[Ghost CTA](#)

[Link CTA](#)

![SanityPress baseball cap](https://cdn.sanity.io/images/cyu7k2r0/production/7303066e818896e2f79f0627b20a93e838684de2-1024x1024.png)

Frequently Asked Questions

## Hero (split) module FAQ

### When should I use the Hero (split) module?

Use it at the top of a page or section when you want an image or product shot beside the headline and copy, rather than behind it. It works well for product pages, feature sections, and about pages.

### How do I add the Hero (split) module to a page?

In Sanity Studio, open the page, click Add item in its Modules field, and pick Hero (split). Fill in the fields, check it in the live Presentation preview, and publish. Modules can be reordered by dragging, and the same module can be used on any page as many times as you need.

### How do I customize the Hero (split) module?

Turn on onRight to place the image on the right on desktop, and afterContent to show it after the copy on mobile. Add alt text, set loading to eager above the fold, and add an eyebrow and call-to-actions.

Every module also has a Scoped CSS field (plus a uid for deep links and a hidden toggle), so you can restyle one instance without touching the rest of the site. For bigger changes, edit the module's React component and schema in src/modules/hero.split in the repo.

Previous module

![Hero (cover) module](https://cdn.sanity.io/images/cyu7k2r0/production/f6135b63c7667275a7c06625af54290acce25c30-2122x1209.png)

[Hero (cover) module](/modules/hero-cover)

Next module

![Image gallery module](https://cdn.sanity.io/images/cyu7k2r0/production/acbcade738caae4d860f5753fa2ddade72dd31c2-2548x1620.png)

[Image gallery module](/modules/image-gallery)
