Skip to content
caliper ui docs

Blocks

Showcase block

The product one job at a time: tabs beside a single stage, each view swapped in place with one line on what it does.

Pro
pnpm dlx shadcn@latest add @caliper/showcase-block

The product

One close, three jobs

Halden does the matching, hands you what it could not decide, and keeps the record your auditors want.

halden.app/close/october
October close412 of 418 matched
Mercury · Stripe payout · INV-2291rule: payouts$18,240.00Matched
AWS · Invoice 0923vendor history$4,112.37Matched
Gusto · Payroll · 31 Octamount differs by $12.40$61,904.12Review
Figma · Annual · Org planrule: SaaS$2,880.00Matched
Brex · Card settlementstatement$9,377.80Matched
Ostra Freight · INV-2209 · Haulage, Octremittance ref$7,450.00Matched
Installs components/ui/showcase-block.tsxDepends on lucide-reactMotion none in component source

When to use

Use it for

  • Right after the hero, when the product has three to five jobs worth seeing.
  • You have real screens or fragments for each job.

Skip it when

  • One screen is enough; put it in the hero.
  • Features without a view; use feature rows.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/showcase-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.

Usage

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

example.tsx
import { ShowcaseBlock, ShowcaseTabs } from "@/components/ui/showcase-block"

The worked example comes with Pro

The 79-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

ShowcaseBlock

component
PropTypeDefault
eyebrowstring—
title *string—
leadstring—
items *readonly ShowcaseItem[]—
defaultValuestring—
layout"beside" | "stacked""beside"
classNamestring—

ShowcaseTabs

component
PropTypeDefaultDescription
label *string—Names the tab list for screen readers, e.g. "Templates".
items *readonly ShowcaseItem[]—
valuestring—
defaultValuestring—
onValueChange((value: string) => void)—
toolbarReactNode—Controls at the end of the tab row; they wrap beneath it on narrow screens.
captionbooleantrueShow the chosen item's `body` under the tab row.
frame"none" | "window""window"
classNamestring—

Accessibility

It exposes tablist, tab and tabpanel semantics, with aria-label, aria-orientation, aria-selected, aria-controls, aria-hidden and aria-labelledby kept in step with state.

KeyBehaviour
↓Moves to the next item or value.
→Moves to the next item or value.
↑Moves to the previous item or value.
←Moves to the previous item or value.
HomeJumps to the first item or the minimum.
EndJumps to the last item or the maximum.

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 Hero, FAQ & contact examples