Skip to content
caliper ui pro docs

Blog home

A blog's front page: the featured post, search that narrows the list as you type and marks what matched, category filters, every post with its date, reading time and author, more on request, and a way back when nothing matches.

Pro
Skip to content

The Halden blog

How we build, and why

Engineering notes, design decisions and the month-end habits of the finance teams we work with.

A quiet harbour at dawn

FeaturedCompany6 min read

Why we publish every salary band

What changed when we put the numbers on the careers page, and the two questions candidates now ask first.

Joana Reis

All posts

7 of 13 posts

When to use

  • The index of a company or engineering blog.
  • Any archive of articles people search more than they browse.

When not to use

  • A few posts on a landing page; use `BlogGrid`.
  • A single article; use the blog post template.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/blog-home

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

BlogHomeTemplate

14 props
PropTypeDefaultDescription
brand *string—
navreadonly BlockNavLink[]—
signInBlockAction—
primaryBlockAction—
footerTemplateFooter—
intro *{ eyebrow?: string | undefined; title: ReactNode; lead?: string | undefined; }—
posts *readonly BlogPost[]—Newest first.
featuredIdstring—The post to lead with; the newest when not set.
pageSizenumber6Posts per page before "Show more".
loadingbooleanfalse
errorstring—Posts could not load; shown with a retry when `onRetry` is set.
onRetry(() => void)—
headingLevel1 | 21The page heading's level; sections follow it.
classNamestring—

searchPosts

0 props

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

Keyboard

Escape
Closes or cancels, then returns focus to where it came from.

Accessibility

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

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/blog-home.md

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

More in Pages