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.
Why we take six weeks to hire, and how we keep candidates informed the whole way.
THTom Hale
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.
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.