Hero block
The first screen of a product page: one claim, two actions and a real artefact that proves it.
When to use
- A landing or product page needs its opening section.
- You can show the product doing the thing, not a stock illustration.
When not to use
- Inside an app; use a page header.
- You have no proof yet; lead with the waitlist form instead.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/hero-block
Adds its 4 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
HeroBlock
17 props
PropTypeDefaultDescription
eyebrowstring—
title *ReactNode—Use BlockEm for the one emphasised phrase.
lead *string—
primaryBlockAction—
secondaryBlockAction—
actionReactNode—Custom content in place of the actions, e.g. an install command or a sign-up field.
notestring—Small reassurance under the actions, e.g. "No card needed".
announcementstring—A short chip above the title, e.g. "New · NetSuite two-way sync".
proofReactNode—The product artefact that proves the claim.
proofTitlestring—The window title over the proof, e.g. "halden.app/close/october".
proofFramebooleantrueFrame the proof as a window on the dotted stage. Turn off for a proof that brings its own frame, such as `ShowcaseTabs`.
floatingReactNode—A small card over the stage's window bar, e.g. a result or a notification.
statsreadonly BlockStat[]—Large figures along the bottom.
logosreadonly string[]—Customer names under the hero.
logosLabelstring"Trusted by teams at"
headingLevel1 | 21
classNamestring—
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It is built on native elements, so roles and focus come from the browser.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/hero-block.mdThe index of every part is at /llms.txt.
More in Hero, FAQ & contact
Contact sectionA contact form beside the direct ways to reach a team, laid over a photo of the place with the people who answer and their local time.Footer blockThe page's last word: link columns, a newsletter that confirms in place, the legal line, status and the name as a full-width wordmark.CTA blockThe closing call to action: the promise again, one specific next step and a reassurance line.