Skip to content
English

Usage

import { LandingHero } from './LandingHero.jsx'

// Your product in the phone: items with their own picture, reading and action, and the phone's words in one object.
// Or pass media={<img src="/app.png" alt="" />} to show your own picture instead of the phone.
<LandingHero
  locale="en"
  product="Bloom"
  labels={{ eyebrow: 'New: brew timer', headline: ['Every cup dialled in,', 'brew after brew.'], lede: 'Bloom logs each brew and tells you what to change next.', note: 'Free for 30 brews a month.' }}
  screen={{ needCare: (n) => n + ' brews to log', allHappy: 'All brews logged', streakIcon: 'cup', tabs: [{ icon: 'home', label: 'Today' }, { icon: 'cup', label: 'Brews' }, { icon: 'note', label: 'Notes' }, { icon: 'user', label: 'Me' }] }}
  items={[
    { id: 'guji', name: 'Ethiopia Guji', detail: 'V60 · 15 g', icon: 'cup', reading: 'Extraction', level: 18, after: 21, max: 24, unit: '%',
      action: { label: 'Log', icon: 'check', ask: 'Untasted', remind: 'Guji is waiting', done: 'Guji logged', after: 'Brew again tomorrow' } },
    { id: 'house', name: 'House espresso', detail: '18 g · 36 g out', image: '/beans/house.jpg', reading: 'Score', level: 86, status: 'Dialled in' },
  ]}
  streak={12}
  onSignUp={async (email) => (await fetch('/api/waitlist', { method: 'POST', body: email })).ok}
  onAction={(id) => track('demo-action', { id })}
/>

Props

PropTypeDefaultWhat it does
locale'en' | 'zh-CN' | 'es' | 'ja''en'Language of the built-in text and sample items.
productstringby localeThe product name, shown in the phone’s notice and read out with the phone.
itemsArray<{ id, name, detail?, image? | icon? | art?, reading?, level?, after?, max?, unit?, status?, action?: { label, icon?, ask?, remind?, done?, after? } }>sample plantsWhat the phone lists. `image` (a URL), `icon` (a kit icon name or an element) or `art` draw it; `level` fills its ring (of `max`, shown with `unit`). An item with `action` shows that button; pressing it moves the ring to `after`, `remind`, `done` and `after` word the notice beside the phone, `ask` sits under the ring.
screen{ today?, needCare?(n), allHappy?, fine?, streakIcon?, streakLabel?(n), allNote?(n), allSaid?(n), tabs?: Array<string | { icon, label }> }—The phone’s own words and icons in one object, laid over the built-in ones (keys as in copy.js).
mediaReactNode | ({ product, locale }) => ReactNode—Shown in place of the phone: a screenshot, a video or your own component.
plantsArray<{ id, name, room, art: 'monstera' | 'fern' | 'snake', measure: 'moisture' | 'humidity', level, after?, need?: 'water' | 'mist', next? }>—Deprecated: the sample’s older item shape, still read when `items` is not given.
streaknumber12Days in a row of care; it rolls up by one when every plant has been looked after.
status'idle' | 'sending' | 'done' | 'error''idle'Opens the sign-up in a given state, for example while your own request runs.
onSignUp(email) => Promise<boolean | void>—Signs the address up. Resolve false or throw to show the error; anything else shows the confirmation.
onAction(id, item) => void—A visitor tried the product: pressed an item’s action in the phone.
onCare(id, need) => void—Deprecated: as onAction, with the sample’s need (water or mist).
labelsobject—Replaces any built-in text (keys as in copy.js).
classNamestring—Added to the root section.

Add it to your project

Copy the prompt into Codex or Claude Code. The agent reads the published source, shows you what it will write and adds the block together with the components it is built from.

LandingHero.jsxlanding-hero.csscopy.jskit.jsxkit.cssui/base-button/ui/rolling-number/ui/success-check/ui/text-input/ui/progress-ring/tokens.cssREADME.md

The block, its stylesheet and text, the shared kit, the components it uses and tokens.css install together into one folder.