Skip to content
All blocks

[16] Marketing

Blog Grid

Three post cards with a cover, a tag, the title, an excerpt and the author, under a heading and a link to all posts.

1280px

Copy the code

One file with one component and its sample data. It needs @vaneui/ui and its stylesheet, set up as in the installation guide.

blog-grid.tsx

import type { ReactNode } from "react";
import { Avatar, Badge, Button, Card, CardBody, Col, Container, Grid3, Row, Section, SectionTitle, Text, Title } from "@vaneui/ui";
function Svg({ children }: { children: ReactNode }) {
return (
<svg width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
{children}
</svg>
);
}
const posts = [
{
href: "/blog/twenty-minute-planning", tag: "Guides", title: "How to run a 20-minute planning meeting",
excerpt: "An agenda, three questions and one board: the routine our customers use to plan a week of work.",
author: "Ana Diaz", date: "Dec 2, 2026", read: "6 min read", tone: { info: true },
cover: <Svg><circle cx="12" cy="12" r="9" /><path d="M12 7v5l3 2" /></Svg>,
},
{
href: "/blog/shared-workspaces", tag: "Product", title: "Shared workspaces are here",
excerpt: "Invite another company into one workspace, choose what they see, and keep the rest private.",
author: "Lee Park", date: "Nov 26, 2026", read: "4 min read", tone: { success: true },
cover: <Svg><rect x="3" y="4" width="8" height="16" rx="1" /><rect x="13" y="4" width="8" height="16" rx="1" /></Svg>,
},
{
href: "/blog/northwind-release-cycle", tag: "Customers", title: "How Northwind cut its release cycle in half",
excerpt: "Twelve teams, one roadmap: what changed when Northwind moved its planning into Acme.",
author: "Mia Chen", date: "Nov 18, 2026", read: "8 min read", tone: { warning: true },
cover: <Svg><path d="M4 20V10M10 20V4M16 20v-7M22 20H2" /></Svg>,
},
];
export function BlogGrid() {
return (
<Section>
<Container itemsStretch>
<Col xl>
<Row justifyBetween itemsEnd flexWrap>
<Col xs>
<SectionTitle>From the blog</SectionTitle>
<Text secondary>Guides, product news and stories from teams that use Acme.</Text>
</Col>
<Button href="/blog">All posts</Button>
</Row>
<Grid3>
{posts.map((p) => (
<Card key={p.href} href={p.href} overflowHidden>
<Card {...p.tone} noBorder sharp aspectVideo itemsCenter justifyCenter aria-hidden="true">{p.cover}</Card>
<CardBody>
<Badge>{p.tag}</Badge>
<Title>{p.title}</Title>
<Text secondary>{p.excerpt}</Text>
<Row sm>
<Avatar sm name={p.author} />
<Col noGap>
<Text sm fontMedium>{p.author}</Text>
<Text xs tertiary>{p.date} · {p.read}</Text>
</Col>
</Row>
</CardBody>
</Card>
))}
</Grid3>
</Col>
</Container>
</Section>
);
}

How it adapts

  • 1024px and up: three posts in a row.
  • Below 1024px: two posts per row, then one below 768px.
  • Each card is one link, so the whole card opens the post.

How these props work is in responsive page sections without breakpoint classes.

Adapt it with your coding agent

Add the VaneUI MCP server, and your agent reads the component docs and prop tables while it changes the block: the copy, the sample data or the layout.

$ claude mcp add vaneui -- npx -y @vaneui/mcp

Setup for other editors is in the AI assistants guide.