Skip to content
New

Hero, wordmark

beta

A heading and its actions over a wide photo, with the brand or one word set across the full width beneath it.

npx rasengan-ui add hero-wordmark

Invoicing for people who would rather be working

Quotes, invoices, payments and reminders in one calm place, for freelancers and small studios.

The Senbon dashboard: money owed, late invoices and a chart of the year's income.
Use it
A short, strong name worth showing big: a product, a restaurant, a studio. Six to ten letters read best.
Avoid it
A long name (over twelve letters), or no wide photo: hero-centered or hero-photo.

Installation

Terminal
npx rasengan-ui add hero-wordmark

It installs into components/blocks/hero-wordmark/, 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 { HeroWordmark } from "@/components/blocks/hero-wordmark";
import { home } from "@/content/home";
 
export default function Home() {
  return <HeroWordmark content={home.hero} />;
}
content/home.ts
import { example, type HeroWordmarkContent } from "@/components/blocks/hero-wordmark";
 
export const home = {
  hero: { ...example, word: "Lumen" } satisfies HeroWordmarkContent,
};

The block is in both families: a product's brand or a place's name. The word's size follows the block's width (cqi) and its length, so it fills the width on one line; past about twelve letters it wraps to a second line on a phone rather than shrinking out of reach. The photo overlaps its top.

Home cooking, the way Douala likes it

Ndolé on Fridays, grilled fish every evening, and plantains fried to order.

The dining room, set for dinner, with wooden tables and warm lights.

Content

FieldTypeLimitsGuidance
wordstring2–24 charsThe brand or one word, set across the full width under the photo: 'Senbon', 'Ngono'. Short words read largest; past about twelve letters it takes two lines on a phone.
headlinestring8–70 charsThe page's heading, above the photo: the promise in at most nine words.
sublineoptionalstring≤ 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.
imageobjectWide (16:9 or so): the product, the place or the dish. It overlaps the top of the word.
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
contentHeroWordmarkContent; 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 big word is decoration, hidden from screen readers: the heading carries the meaning.
  • The page's one h1 by default.