Sidebar with Categories

Blog

Latest Articles

Insights and tutorials from our team.

About this block

Sidebar with CategoriesPRO

Main content area with horizontal post cards plus sidebar. Categories show post counts and popular tags section with clickable badges.

Blog13: Sidebar with Categories

A two-column blog index whose main column stacks horizontal post cards (image beside title, tag badge, summary, author avatar and date) and whose sidebar lists categories with post counts and a wrap of clickable popular-tag badges, all wrapped in an optional badge, heading, and description header.

Upgrade to Pro

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.

Upgrade Now

Installation

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

bash
npx shadcn add "https://ui.beste.co/r/blog13?email=YOUR_EMAIL&license_key=YOUR_KEY"

Base UI flavor

bash
npx shadcn add "https://ui.beste.co/r-base/blog13?email=YOUR_EMAIL&license_key=YOUR_KEY"

This installs the block to components/beste/block/blog13.tsx, plus the badge and avatar shadcn/ui primitives it uses for the eyebrow/tag badges and the author avatars.

Quick start

The installed file exports blog13Demo alongside the block: the exact props behind the preview above. Spread it to get a working blog index with sidebar in one line.

tsx
import { Blog13, blog13Demo } from "@/components/beste/block/blog13";

export default function BlogPage() {
  return <Blog13 {...blog13Demo} />;
}

Then replace the demo with your own props. Written out, a trimmed setup looks like this:

tsx
import { Blog13 } from "@/components/beste/block/blog13";

export default function BlogPage() {
  return (
    <Blog13
      badge={{ label: "Blog", variant: "default" }}
      heading="Latest Articles"
      description="Insights and tutorials from our team."
      posts={[
        {
          image: { src: "/posts/design-systems.jpg", alt: "Design systems" },
          title: "The Future of Design Systems",
          summary: "How design systems evolve to meet complex web apps.",
          date: "January 15, 2026",
          readTime: "8 min read",
          author: { name: "Lisa Park", title: "Senior Developer" },
          tags: [{ label: "Design", href: "/blog/design" }],
          href: "/blog/design-systems",
        },
      ]}
      categories={[
        { label: "All Posts", count: 24, href: "/blog" },
        { label: "Design", count: 8, href: "/blog/design" },
      ]}
      popularTags={[
        { label: "React", href: "/blog/tags/react" },
        { label: "TypeScript", href: "/blog/tags/typescript" },
      ]}
    />
  );
}

Props

PropTypeDefaultDescription
badge{ label: string; variant?: "default" | "secondary" | "outline" }Optional eyebrow badge above the heading
headingstringSection heading
descriptionstringSub-heading paragraph under the heading
postsBlogPost[][]Horizontal post cards in the main column
categoriesCategory[][]Rows in the sidebar Categories card
popularTagsTag[][]Badges in the sidebar Popular Tags card
classNamestringExtra classes for the outer <section>
ts
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;
};

type Category = {
  label: string;
  count?: number;
  href?: string;
};

Behavior notes

  • The header block only renders when at least one of badge, heading, or description is supplied; with all three omitted the grid starts at the top of the section.
  • Each post card is a fixed horizontal layout: the image is a next/link that fills a sm:w-48 md:w-56 panel and scales to 105% on hover, while the title link tints to text-primary on the same group hover. Cards do not stack vertically at desktop width.
  • Only the first tag of each post (post.tags?.[0]) is rendered as an outline badge; any further entries in tags are ignored.
  • post.readTime and author.title are accepted by the types but never displayed; the card footer shows only the author avatar, author.name, and date.
  • The author Avatar renders only when author.avatar exists; its fallback initials are derived by splitting author.name on spaces and joining the first letters.
  • The Categories and Popular Tags sidebar cards each render only when their array is non-empty; a category count is shown as (count) only when count is not undefined, so a count of 0 still displays.
  • Every link falls back to href="#" when its href is omitted, and the block is presentational: it exposes no callbacks, no internal state, and no active-category filtering.

More Blog blocks

View all Blog
PRO

blog5

Horizontal List with Icons

Vertical stack of horizontal blog cards with left-aligned thumbnails. Features calendar and clock icons for metadata, author titles, and tag badges.

PRO

blog10

Alternating Feature Cards

Large alternating left-right blog cards with full article summaries. Image and content switch sides for visual variety. Read more buttons included.

PRO

blog60

Featured Article With Recent List

A blog section pairing one linked feature with a hover-zoom image, category label, and byline against a hairline list of five recent posts stamped with their date.

FREE

blog4

Featured Hero with Grid

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.

PRO

blog22

Full-Width Stacked Cards

Vertically stacked blog cards with 2:1 aspect ratio images. Full article summaries with author avatars and read more buttons. Long-form content showcase.

FREE

blog25

Split Image with List

Two-column layout with featured image on left and article list on right. Divider-separated entries with arrow hover effects.