Skip to content
caliper ui docs

Components

Blog grid

A grid of article cards with date, tag and summary.

Free
pnpm dlx shadcn@latest add @caliper/blog-grid

From the blog

Notes from the team, every other week.

Ridge
Engineering6 min read

How we test with the keyboard only

A weekly habit that finds more bugs than any tool: one hour, no mouse, every screen we shipped that week.

Lena Fischer

Terrace
Company3 min read

Behind our new status page

Ninety days, honestly shown, including the 41 minutes in August.

Ravi Patel

Installs components/ui/blog-grid.tsxDepends on none beyond ReactMotion none in component source

When to use

Use it for

  • Listing posts or case studies.

Skip it when

  • There is a single featured post.

Installation

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

Adds its 4 files to components/ui/, each with its own stylesheet, and installs their packages. No account needed. The first part also adds Caliper UI’s tokens; import them once as in Installation.

Usage

This is the code behind the preview above.

example.tsx
import { BlogGrid } from "@/components/ui/blog-grid"

const posts = [
  { id: "p1", title: "How we test with the keyboard only", excerpt: "A weekly habit that finds more bugs than any tool: one hour, no mouse, every screen we shipped that week.", href: "#", date: "2026-10-16", readTime: "6 min read", category: "Engineering", author: { name: "Lena Fischer" }, image: { src: "/media/ridge.jpg", alt: "Ridge" } },
  { id: "p2", title: "Writing error messages people thank you for", excerpt: "Say what happened, why and what to do next.", href: "#", date: "2026-10-09", readTime: "4 min read", category: "Design", author: { name: "Noor Haddad" }, image: { src: "/media/harbour.jpg", alt: "Harbour" } },
  { id: "p3", title: "Behind our new status page", excerpt: "Ninety days, honestly shown, including the 41 minutes in August.", href: "#", date: "2026-10-02", readTime: "3 min read", category: "Company", author: { name: "Ravi Patel" }, image: { src: "/media/terrace.jpg", alt: "Terrace" } },
  { id: "p4", title: "Column pinning, and the three designs we threw away", excerpt: "Why the pinned edge is a line and not a shadow.", href: "#", date: "2026-09-25", readTime: "5 min read", category: "Product", author: { name: "Aiko Tanaka" }, image: { src: "/media/dunes.jpg", alt: "Dunes" } },
  { id: "p5", title: "Virtualising 50,000 rows without losing focus", excerpt: "Keeping the keyboard cursor alive while rows are recycled.", href: "#", date: "2026-09-17", readTime: "8 min read", category: "Engineering", author: { name: "Lukas Weber" }, image: { src: "/media/forest.jpg", alt: "Forest" } },
  { id: "p6", title: "Colour that holds 4.5:1 in both themes", excerpt: "How our label hues pick lightness per theme, not per colour.", href: "#", date: "2026-09-04", readTime: "5 min read", category: "Design", author: { name: "Mira Solheim" }, image: { src: "/media/field.jpg", alt: "Field" } },
];

export function BlogGridDemo() {
  return (
    <BlogGrid posts={posts} description="Notes from the team, every other week." tones={{ Engineering: "blue", Design: "rose", Company: "slate", Product: "violet" }} />
  );
}

API reference

BlogGrid

component
PropTypeDefaultDescription
posts *readonly BlogPost[]—
titlestring"From the blog"
descriptionstring—
featuredbooleantrueShow the first post larger when there are at least three.
tonesPartial<Record<string, "blue" | "violet" | "rose" | "orange" | "amber" | "green" | "teal" | "slate">>—One hue per category, e.g. { Engineering: "blue" }. Categories without one stay neutral.
loadingboolean—
classNamestring—

Accessibility

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

No custom key handling; Tab and the native activation keys do the work.

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 Reading & proof examples