Filterable blog grid with tab navigation for categories. Posts automatically filter by category selection with smooth content switching.
A category-tabbed blog grid: a centered badge/heading/description header sits above a shadcn Tabs bar whose triggers come from your category list, and each tab panel renders a responsive card grid of matching posts, every card showing a hover-zoomed cover image, a two-line-clamped title and summary, and an author avatar with read time.
Pro blocks install through the shadcn CLI with your license key and ship their full source. Docs and live previews stay open to everyone, so you can read every block's details first.
Swap YOUR_EMAIL and YOUR_KEY for the email and license key on your account. Find your license key on your account page.
Radix flavor
npx shadcn add "https://ui.beste.co/r/blog8?email=YOUR_EMAIL&license_key=YOUR_KEY"Base UI flavor
npx shadcn add "https://ui.beste.co/r-base/blog8?email=YOUR_EMAIL&license_key=YOUR_KEY"This installs the block to components/beste/block/blog8.tsx, plus the badge, avatar, and tabs shadcn/ui primitives it uses for the header eyebrow, author images, and the category tab bar.
The installed file exports blog8Demo alongside the block: the exact props behind the preview above. Spread it to get a working filterable blog grid in one line.
import { Blog8, blog8Demo } from "@/components/beste/block/blog8";
export default function Page() {
return <Blog8 {...blog8Demo} />;
}Then replace the demo with your own props. Written out, a trimmed setup looks like this:
import { Blog8 } from "@/components/beste/block/blog8";
export default function Page() {
return (
<Blog8
badge={{ label: "Blog", variant: "default" }}
heading="Browse by Category"
description="Find articles that match your interests."
categories={[
{ label: "All", value: "all" },
{ label: "Design", value: "design" },
{ label: "Development", value: "development" },
]}
posts={[
{
image: { src: "/covers/design-systems.jpg", alt: "Design systems" },
title: "The Future of Design Systems",
summary: "How design systems evolve to meet complex app demands.",
readTime: "8 min read",
author: { name: "Lisa Park", avatar: { src: "/authors/lisa.jpg", alt: "Lisa Park" } },
category: "design",
href: "/blog/design-systems",
},
]}
/>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
badge | { label: string; variant?: "default" | "secondary" | "outline" } | – | Centered eyebrow badge above the heading |
heading | string | – | Section heading |
description | string | – | Muted paragraph under the heading |
categories | Category[] | [] | Tab triggers and the panels posts are grouped into |
posts | BlogPost[] | [] | Cards rendered per tab, filtered by category |
className | string | – | Extra classes for the outer <section> |
type Category = {
label: string;
value: string;
};
type Author = {
name: string;
title?: string;
avatar?: { src: string; alt: string };
href?: string;
};
type Tag = {
label: string;
href?: string;
};
type BlogPost = {
image: { src: string; alt: string };
title: string;
summary: string;
date?: string;
readTime?: string;
author?: Author;
tags?: Tag[];
href?: string;
category?: string;
};categories[0]?.value ?? "all", so the first category you list is the one shown on mount; the whole tab bar is hidden when categories is empty.value "all" returns every post untouched, and any other value keeps only posts whose category equals it, so posts with no category only ever appear under the "all" tab.TabsContent panel per category and re-filters posts inside each, meaning a post assigned to two categories would need two matching category values to appear in both.post.href, falling back to "#" when href is omitted; the image scales to 105% on card hover and the title shifts to text-primary.post.author is set, and the avatar image only when post.author.avatar is present; otherwise an AvatarFallback shows the author's initials derived from splitting name on spaces.title and summary are each clamped to two lines via line-clamp-2, and readTime (when present) sits opposite the author using text-xs.index rather than a stable id, so reordering or filtering large lists can reuse DOM nodes unexpectedly; there are no click callbacks, only plain navigation links.blog43
A blog listing with an eyebrow over a hairline rule, a two-column heading, and three linked article cards with a hover-zoom image, a monospace category, a title, an excerpt, and byline.
blog13
Main content area with horizontal post cards plus sidebar. Categories show post counts and popular tags section with clickable badges.
blog10
Large alternating left-right blog cards with full article summaries. Image and content switch sides for visual variety. Read more buttons included.
blog25
Two-column layout with featured image on left and article list on right. Divider-separated entries with arrow hover effects.
blog15
Clean text-only blog list with arrow icons. No images, just titles, dates, and authors. Lightweight design with hover arrow animation.
blog4
Large featured article with side-by-side image and content, followed by a three-column grid of secondary posts. Read more buttons and author details included.