Skip to main content
BlocksBlogCategory pill filters with two-column cards

shadcn/ui Blog blockCategory pill filters with two-column cards

Interactive blog grid for shadcn/ui with a row of category pills built from toggled Button variants and local state, defaulting to "All". Selecting a pill filters a two-column grid of large cards with cover image, uppercase category label, title, excerpt and Avatar author with date, and a friendly dashed empty state appears when a topic has no posts yet.

Pro@shadcnpro/blog-04

Preview

Installation

Part of shadcn/ui Pro

Pro unlocks the source code and one-command install of all 439 blocks, plus the Figma kit, themes and the MCP server for your AI editor.

Let your AI editor install it

The shadcn/ui Pro MCP server lets Cursor, Claude Code and VS Code find and install blocks like Category pill filters with two-column cards from one prompt. It is included in every Pro plan.

Add the shadcn/ui components

Category pill filters with two-column cards uses Avatar and Button.

npx shadcn@latest add avatar button

Copy the code

Paste it into components/blocks/blog-04.tsx.

components/blocks/blog-04.tsx

Part of shadcn/ui Pro

Pro unlocks the source code and one-command install of all 439 blocks, plus the Figma kit, themes and the MCP server for your AI editor.

Use it

Import it where you need it and update the import path to match your project.

Usage
import Blog04 from '@/components/blocks/blog-04';

export default function Page() {
  return <Blog04 />;
}

Overview

Category pill filters with two-column cards is a Pro blog block for shadcn/ui. It is built from the Avatar and Button components, and installs as a single file you own and can edit.

It only uses semantic tokens such as bg-background, text-muted-foreground and border-border, so it follows your theme, radius and fonts and switches with dark mode. It is responsive from desktop to mobile; the width controls above the preview show each size. The same layout is in the shadcn/ui Pro Figma kit, so design and code start from one source.

Category
Blog
Component library
Radix UI (radix-ui)
Also available for
Base UI, React Aria
Built with
Avatar and Button
npm packages
None
Files
components/blocks/blog-04.tsx
Access
Included in every plan

Frequently asked questions

Pricing, installation and Radix UI details for Category pill filters with two-column cards.