Skip to content
New

Hero, split

beta

Headline, subcopy and two actions beside a portrait photo, with up to three figure chips over its corners.

npx rasengan-ui add hero-split

Invoicing for small studios

Get paid for the work, not the paperwork

Senbon writes your invoices, takes cards, transfers and mobile money, and chases late payers so you never have to.

A studio owner in a yellow blazer, smiling, holding a tablet.
  • 94%invoices paid on time
  • 2 daysfrom payment to your bank
  • 12kstudios and freelancers
Use it
A product sold by and to people: a face or the product in someone's hands says more than a screenshot.
Avoid it
No photo worth the space: hero-centered leads with the product shot.

Installation

Terminal
npx rasengan-ui add hero-split

It installs into components/blocks/hero-split/, with what it uses (Button, Text Reveal) and lib/blocks.ts.

Usage

Without content, the block shows its example. Pass your own, typed by the block's schema, from a content file (here, the example with one field changed):

app/_routes/index.page.tsx
import { HeroSplit } from "@/components/blocks/hero-split";
import { home } from "@/content/home";
 
export default function Home() {
  return <HeroSplit content={home.hero} />;
}
content/home.ts
import { example, type HeroSplitContent } from "@/components/blocks/hero-split";
 
export const home = {
  hero: { ...example, headline: "Invoices that chase themselves" } satisfies HeroSplitContent,
};

The headline reveals word by word when the page loads (trigger="mount"), and is simply there with motion off. Up to three chips sit over the photo's corners on a wide screen and line up under it on a narrow one: use real figures. Its heading is the page's h1; pass headingLevel={2} if it is not the page's first section.

Content

FieldTypeLimitsGuidance
eyebrowoptionalstring≤ 48 charsA few words above the headline: 'Invoicing for small studios'.
headlinestring8–70 charsThe promise in at most nine words.
sublinestring20–180 chars
primaryobject
primary.labelstring1–32 charsA verb first, two to four words: 'Start free', 'Book a table'.
primary.hrefstringA path ('/pricing'), an anchor ('#menu'), or a full URL.
secondaryoptionalobject
secondary.labelstring1–32 charsA verb first, two to four words: 'Start free', 'Book a table'.
secondary.hrefstringA path ('/pricing'), an anchor ('#menu'), or a full URL.
chipsoptionalobject[]≤ 3 itemsUp to three real figures, shown over the photo's corners on a wide screen, under it on a narrow one.
chips[].valuestring1–12 chars'94%', '2 days', '12k'.
chips[].labelstring2–32 chars
imageobjectA person or the product in use, portrait (4:5). Its alt says who or what it shows.
image.srcstringA local path ('/images/terrace.jpg') or the project's asset URL.
image.altstring≤ 140 charsWhat the image shows, for people who cannot see it. Empty only if purely decorative.
image.widthinteger
image.heightinteger

Props

PropNotes
contentHeroSplitContent; the example when left out
idthe section's id, for anchor links; "hero" by default
headingLevel1, 2 or 3: the heading's tag; 1 by default
classNameon the <section>, for spacing

Accessibility

  • The photo has its own alt; the chips are text, read after it.
  • The page's one h1 by default.