Skip to content
caliper ui pro docs

Hero editions

Five first screens for a marketing page, each proving its claim with a working part rather than a picture: a metric that counts up and redraws by period, an agent run that waits for your approval, an install command that types out and copies whole, a tour that plays through three product screens, and a launch countdown with a waitlist form.

Pro
New · Matching rules you can read

Close the month before it closes you.

Halden matches bank lines to invoices as they arrive, so month end is a review, not a scramble.

Invoices matched without a person

3,912

+9% on the previous 4 weeks

Matched per period
Matched per period
PointInvoices matched without a personEvent
Wk 9610
Wk 10790
Wk 111030
Wk 121482

When to use

  • The first screen of a product or launch page.
  • A claim that a real part can prove on the spot: a number, a run, a command, a screen.

When not to use

  • A plain headline and two buttons; use `HeroBlock` or `HeroCentered`.
  • Product screens and settings; these are marketing blocks.
  • More than one per page.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/hero-editions

Adds its 22 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

HeroLiveMetric

16 props
PropTypeDefaultDescription
announcementstring—A short chip above the title, e.g. "New · Close in two days".
eyebrowstring—
title *ReactNode—Use BlockEm for the one emphasised phrase.
lead *string—
primaryBlockAction—
secondaryBlockAction—
notestring—Reassurance under the actions, e.g. "No card needed".
headingLevel1 | 2—
classNamestring—
metricLabel *string—What the figure counts, e.g. "Invoices matched automatically".
ranges *readonly HeroMetricRange[]—One or more periods; a switch appears with two or more.
formatNumberFormatOptions—
prefixstring—
suffixstring—
chartLabelstring—The chart's accessible name and caption; defaults to the metric label.
contextstring—A line under the panel, e.g. "Sample workspace · updated hourly".

HeroAgentRun

15 props
PropTypeDefaultDescription
announcementstring—A short chip above the title, e.g. "New · Close in two days".
eyebrowstring—
title *ReactNode—Use BlockEm for the one emphasised phrase.
lead *string—
primaryBlockAction—
secondaryBlockAction—
notestring—Reassurance under the actions, e.g. "No card needed".
headingLevel1 | 2—
classNamestring—
goal *string—What the agent was asked to do.
steps *readonly HeroRunStep[]—
result *ReactNode—What the finished run produced.
resultTitlestring"Output"
waitingTextstring"The result lands here when the run finishes."
stepMsnumber1100How long each automatic step runs.

HeroInstall

13 props
PropTypeDefaultDescription
announcementstring—A short chip above the title, e.g. "New · Close in two days".
eyebrowstring—
title *ReactNode—Use BlockEm for the one emphasised phrase.
lead *string—
primaryBlockAction—
secondaryBlockAction—
notestring—Reassurance under the actions, e.g. "No card needed".
headingLevel1 | 2—
classNamestring—
commands *readonly HeroInstallCommand[]—One per package manager; a switch appears with two or more.
snippet{ code: string; language?: CodeLanguage | undefined; title?: string | undefined; }—
previewReactNode—The live result of the snippet.
previewTitlestring"Result"

HeroProductTour

11 props
PropTypeDefaultDescription
announcementstring—A short chip above the title, e.g. "New · Close in two days".
eyebrowstring—
title *ReactNode—Use BlockEm for the one emphasised phrase.
lead *string—
primaryBlockAction—
secondaryBlockAction—
notestring—Reassurance under the actions, e.g. "No card needed".
headingLevel1 | 2—
classNamestring—
screens *readonly HeroScreen[]—
intervalnumber7000

HeroLaunch

17 props
PropTypeDefaultDescription
announcementstring—A short chip above the title, e.g. "New · Close in two days".
eyebrowstring—
title *ReactNode—Use BlockEm for the one emphasised phrase.
lead *string—
primaryBlockAction—
secondaryBlockAction—
notestring—Reassurance under the actions, e.g. "No card needed".
headingLevel1 | 2—
classNamestring—
launchAt *string | number | Date—
launchLabelstring—The date in words, e.g. "Opens Tuesday 12 January, 09:00 GMT".
onJoin *(email: string) => HeroJoinResult | Promise<HeroJoinResult>—Called with a valid email. Return a place in line, or an error to show under the field.
emailLabelstring"Work email"
submitLabelstring"Join the waitlist"
successTitlestring"You are on the list"
privacyNotestring—e.g. "One email when we open. No list sharing."
liveLabelstring"Live now"

Keyboard

  • Keyboard and focus come from Radix tabs: arrow keys move through items, Enter and Space select, and Escape closes and returns focus.

Accessibility

It exposes status semantics, with aria-labelledby, aria-hidden and aria-label kept in step with state. Changes that matter are announced through a live region.

Motion

  • State changes animate with the library's shared durations and curves, so its timing matches every other part.
  • Under reduced motion each change lands on its end state without movement; nothing is hidden or skipped.

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-editions.md

The index of every part is at /llms.txt.

More in Hero, FAQ & contact