Skip to content
caliper ui docs

Pro

Onboarding template

A first-run flow of seven steps that says how long it takes, why each step is asked and what your answer will do beside the form, lets you skip what is not needed, saves as you go and ends with what now exists and what is still to do.

Pro
pnpm dlx shadcn@latest add @caliper/onboarding-template
Step 1 of 7 · 1 min · required

Name your workspace

It heads every invoice and invitation, and sets the address, currency and calendar your numbers follow.

Your business as customers know it.0 / 120

forma.app/

Letters, numbers and dashes. You can change it later.0 / 40

What invoices are written in.

When reminders go out.

Reports follow it.

Letters before the number.

Enter a workspace name to continue.

Installs components/ui/onboarding-template.tsxDepends on @radix-ui/react-popover, @radix-ui/react-slot, lucide-reactMotion none in component source

When to use

Use it for

  • First-run set-up with five to eight steps, some of them optional.
  • Steps with heavy bodies: a bank connection, a CSV import, team invites.
  • Flows people leave and return to, where progress must be kept.

Skip it when

  • A single form; use fields and a button.
  • Two or three questions; ask them inline.
  • Checkout; use the checkout screen.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/onboarding-template

Adds its 26 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.

Usage

Import it from your copy of the source. The example behind the preview comes with the source. It is built from OnboardingTemplate and stepMinutes.

example.tsx
import { OnboardingTemplate, stepMinutes } from "@/components/ui/onboarding-template"

The worked example comes with Pro

The 440-line example behind the preview opens here, ready to copy.

  • 626 Pro parts, blocks and page templates, all with source
  • $149 once, with lifetime updates. No renewal
  • A full refund within 14 days if it is not for you
Checking your licence…

API reference

OnboardingTemplate

component
PropTypeDefaultDescription
title *string—
steps *readonly OnboardingTemplateStep[]—
storageKeystring—Saves progress in this browser under this key.
summary *(values: OnboardingValues, steps: { skipped: readonly string[]; done: readonly string[]; }) => readonly OnboardingSummaryItem[]—What exists now, given the values and which steps were skipped.
nextActionsreadonly OnboardingNextAction[]—Where to go from the last page.
reviewTitlestring"Review and finish"
reviewTimestring"1 min"
onFinish((values: OnboardingValues, skipped: string[]) => void)—
classNamestring—

stepMinutes

component

No props of its own; it accepts the native props of its root element.

Accessibility

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

Keyboard and focus handling comes from Radix popover: arrow keys move through items, Enter and Space select, and Escape closes and returns focus.

Motion

It declares no animation in its component source. Any transition comes from its stylesheet, which uses the duration tokens that collapse to instant under prefers-reduced-motion.

All Pages examples