Blog Cards Section React block for Tailwind CSS v4
v1.0.1Updated in 1.10.1
A "From the blog" section: the latest posts as cards, a featured post with a list, dated rows or a sideways rail, with covers drawn in code.
Each post is one link to /blog/<slug>: hovering lifts the card, zooms its cover glyph and underlines the title, and tabbing to it draws the focus ring around the whole card. Covers are drawn in code (a gradient tile per category with its glyph, or a quiet tint in the tone), so nothing loads. The grid shows three cards, two columns on tablets and one on phones; featured puts the latest post large beside a list of compact rows with small covers; list shows rows with a big month and day column and a cover on the right from 768px; rail is a sideways scroller that snaps card by card, swipes on touch and bleeds to the screen edge, with previous and next buttons that disable at the ends. "View all posts" under the heading links to /blog.
Blog Cards Section is a Pro React block in the React marketing sections category, written in TypeScript for React 19 and Tailwind CSS v4. It installs as source with npx wingo-ui@latest add blog-cards-section, together with Marketing Section, Avatar, Badge, Button, Motion presets and 3 more and the npm package lucide-react.
Built with
The sections this page is made of. In the full-screen preview, hold Alt to outline each one on the page.
Add to a project
Requirements: React 19 and Tailwind CSS v4, in Next.js (App Router or Pages), Vite or React Router. Installation guide · Next.js setup · Vite setup
npx wingo-ui@latest add blog-cards-sectionBlog Cards Section is part of Pro, with 298 more Pro items: $8 a month or $150 once. 14-day refund before you download any Pro item. See plans
Usage
Import BlogCardsSection from @/components/blocks/blog-cards-section.
// app/(marketing)/page.tsx
"use client"
import Link from "next/link"
import { BlogCardsSection, type BlogCardsPost } from "@/components/blocks/blog-cards-section"
const posts: BlogCardsPost[] = [
{
slug: "plan-a-quarter-in-one-afternoon",
title: "How we plan a quarter in one afternoon",
excerpt: "Our six-step ritual for turning a messy backlog into a plan.",
category: "planning",
author: { name: "Emma Carter", role: "CEO" },
date: "2026-10-01",
readingTime: 7,
},
]
export default function Home() {
return <BlogCardsSection layout="featured" posts={posts} linkComponent={Link} />
}Props
eyebrowdefault"Blog"ReactNodeThe small line over the title.
titledefault"From the blog"ReactNodeThe section title.
descriptiondefault"Notes on planning, writing and shipping from the team behind Acme."ReactNodeThe paragraph under the title.
actionsReactNodeExtra buttons under the heading, after View all posts.
postsdefault"BLOG_CARDS_SAMPLE"BlogCardsPost[]{ slug, title, excerpt?, category, author: { name, role?, avatar? }, date (ISO), readingTime? (minutes), href? }.
categoriesdefault"BLOG_CARDS_CATEGORIES"Record<string, BlogCardsCategory>{ label, icon?, color? } per category key: the tag text, the cover glyph and the cover color. Unknown keys show the key with a newspaper glyph.
layoutdefault"grid""grid" | "featured" | "list" | "rail"grid: three cards (two on tablets, one on phones); featured: the latest post large beside compact rows; list: rows with a date column in a 960px column; rail: a snap scroller with previous and next buttons.
limitdefault0numberHow many posts show; 0 picks by layout (grid 3, featured 4, list 4, rail 6).
aligndefault"center""start" | "center"Where the heading sits.
coverdefault"gradient""gradient" | "soft" | "none"gradient: a colored tile per category with its glyph; soft: a quiet tint with the glyph in the tone; none: text-only cards.
carddefault"raised""raised" | "flat" | "none"The surface behind grid, featured and rail cards: raised, a flat tint or nothing.
radiusdefault"lg""sm" | "md" | "lg"Card corners: 12, 16 or 24px; the cover follows.
tonedefault"neutral""neutral" | "brand" | "success" | "warning" | "danger" | "info"The category tags and the glyph on soft covers.
showExcerptdefaulttruebooleanThe summary under each title.
showAuthordefaulttruebooleanThe author's avatar initials and name.
showReadingTimedefaulttrueboolean"7 min read" next to the date.
showViewAlldefaulttruebooleanThe View all posts button under the heading.
viewAllHrefdefault"/blog"stringWhere View all posts links.
basePathdefault"/blog"stringPosts without an href link to basePath/slug.
localedefault"en-US"stringIntl locale for the dates; default the UIProvider's locale, else en-US.
headingSizedefault"md""md" | "lg"lg when the section opens the page.
headingAsdefault"h2""h1" | "h2" | "h3"The title element; post titles are h3.
backgrounddefault"none""none" | "muted"muted sets the section on a gray band.
spacingdefault"md""none" | "sm" | "md" | "lg"Vertical padding of the section.
widthdefault"lg""sm" | "md" | "lg" | "xl"The content column: 720, 960, 1200 or 1400px. The list layout narrows lg to 960px.
linkComponent(props: LinkComponentProps) => ReactNodeThe router link for posts and View all (next/link in an app); default the LinkProvider's.
labelsPartial<BlogCardsSectionLabels>viewAll, readingTime ({minutes}), latest, rail (the scroller's label), previous, next, byAuthor ({name}).
classNamestringClasses for the <section>.
classNamesPartial<Record<BlogCardsSectionSlot, string>>Classes for list, item, cover, body, category, title, excerpt, meta, author, date, controls and viewAll.
Parts
BLOG_CARDS_SAMPLE
constantSix Acme posts on planning, docs, automations, insights and product, Aug to Oct 2026.
BLOG_CARDS_CATEGORIES
constantThe sample categories with a lucide glyph and a cover color each.
DEFAULT_BLOG_CARDS_SECTION_LABELS
constantThe English strings.
BlogCardsPost
typeOne post card: slug, title, excerpt, category, author, date, reading time and an optional href.
slug*stringThe url segment after basePath.
title*stringThe post title, also the link text.
excerptstringOne or two sentences.
category*stringA key of the categories map.
author*{ name: string; role?: string; avatar?: string }Shown as avatar initials (or the photo) and name.
date*stringISO date, formatted in the locale.
readingTimenumberMinutes.
hrefstringOverrides basePath/slug.
BlogCardsCategory
type{ label, icon?, color? }.
BlogCardsAuthor
type{ name, role?, avatar? }.
BlogCardsSectionLabels
typeThe strings the labels prop overrides.
BlogCardsSectionLayout
type"grid" | "featured" | "list" | "rail".
BlogCardsSectionProps
typeProps of BlogCardsSection.
Examples
Three latest posts
The grid: gradient covers per category, the author and reading time on every card.
Featured post and a list
The latest post large, the next three as compact rows with small covers.
Dated list
Rows with a month and day column on a muted band, soft covers in the brand tone.
Swipeable rail
All six posts in a sideways scroller that snaps card by card, with previous and next buttons.
Text-only cards
No covers and no excerpts: just the category, the title and the byline, for a quiet footer band.
Files
- components/blocks/blog-cards-section.tsx
FAQ
Is the React Blog Cards Section block free?
The preview, props and docs are free; copying the source needs a Pro plan. See plans.
How do I install Blog Cards Section?
Run npx wingo-ui@latest add blog-cards-section. It also adds the Wingo UI items it builds on (Marketing Section, Avatar, Badge, Button, Motion presets and 3 more) and the npm package lucide-react. With shadcn, add the @wingo-ui registry with your API key, then run npx shadcn@latest add @wingo-ui/blog-cards-section.
How does Blog Cards Section behave on phones?
The grid shows three cards, two columns on tablets and one on phones; featured puts the latest post large beside a list of compact rows with small covers; list shows rows with a big month and day column and a cover on the right from 768px; rail is a sideways scroller that snaps card by card, swipes on touch and bleeds to the screen edge.
See also
Used in
More React marketing sections
New components by email
New posts, product news and occasional offers from Wingo UI. We count clicks to keep it relevant.