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.
When to use
- Right after the hero, when the product has three to five jobs worth seeing.
- You have real screens or fragments for each job.
When not to use
- 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.
API reference
ShowcaseBlock
7 props
PropTypeDefault
eyebrowstring—
title *string—
leadstring—
items *readonly ShowcaseItem[]—
defaultValuestring—
layout"stacked" | "beside""beside"
classNamestring—
ShowcaseTabs
9 props
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—
Keyboard
- ↓
- 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.
- Home
- Jumps to the first item or the minimum.
- End
- Jumps to the last item or the maximum.
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.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/showcase-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.