Blog

The latest blog posts in a grid, each with a picture, a category, its title, a line from it, its author and its date, here three to a row, centred, each with its picture, its category and its date.

import { Image01Icon } from "@hugeicons/core-free-icons";
import { BlogGrid, type BlogPost } from "@produkto/ui/Blog";
import { Icon } from "@produkto/ui/Icon";

const media = (
  <div className="flex aspect-video items-center justify-center rounded-2xl border border-border bg-muted text-muted-foreground">
    <Icon icon={Image01Icon} size={32} />
  </div>
);

const posts: BlogPost[] = [
  {
    title: "Blog post title goes here",
    link: "#",
    media,
    category: "Category",
    categoryLink: "#",
    date: "13 Oct 2026",
  },
  {
    title: "Blog post title goes here",
    link: "#",
    media,
    category: "Category",
    categoryLink: "#",
    date: "8 Oct 2026",
  },
  {
    title: "Blog post title goes here",
    link: "#",
    media,
    category: "Category",
    categoryLink: "#",
    date: "6 Oct 2026",
  },
];

const Example = () => (
  <div className="w-full p-6">
    <BlogGrid align="center" headingLevel={2} posts={posts} />
  </div>
);

export default Example;

Usage

import { Blog, type BlogPost } from "@produkto/ui/Blog";
const posts: BlogPost[] = [
  {
    title: "Post title goes here",
    link: "#",
    media: <img alt="" src="/picture.png" />,
    category: "Category",
    excerpt: "A short line from the post goes here.",
    author: { name: "User 1" },
    date: "Jan 12, 2026",
  },
  {
    title: "Post title goes here",
    link: "#",
    media: <img alt="" src="/picture.png" />,
    category: "Category",
    excerpt: "A short line from the post goes here.",
    author: { name: "User 2" },
    date: "Jan 8, 2026",
  },
];

<Blog
  eyebrow="Blog"
  title="Your headline goes here"
  description="A short line about the blog goes here."
  posts={posts}
/>

Examples

Dated index

layout="index" sets the latest blog posts as ruled rows, each date before its title and line.

Blog

Your headline goes here

A short line about the blog goes here.

import { Blog, type BlogPost } from "@produkto/ui/Blog";

const posts: BlogPost[] = [
  {
    title: "Blog post title goes here",
    link: "#",
    excerpt: "A short line from the blog post goes here.",
    date: "13 Oct 2026",
  },
  {
    title: "Blog post title goes here",
    link: "#",
    excerpt: "A short line from the blog post goes here.",
    date: "8 Oct 2026",
  },
  {
    title: "Blog post title goes here",
    link: "#",
    excerpt: "A short line from the blog post goes here.",
    date: "6 Oct 2026",
  },
];

const Example = () => (
  <Blog
    actions={[{ label: "Button", link: "#", appearance: "outline" }]}
    description="A short line about the blog goes here."
    eyebrow="Blog"
    layout="index"
    posts={posts}
    title="Your headline goes here"
  />
);

export default Example;

Rows with photos

layout="rows" sets each blog post as a ruled row, its picture beside its category, title, line and date.

Blog

Your headline goes here

A short line about the blog goes here.

import { Blog, type BlogPost } from "@produkto/ui/Blog";
import { Image } from "@produkto/ui/Image";

const posts: BlogPost[] = [
  {
    title: "Blog post title goes here",
    link: "#",
    media: <Image alt="" src="https://picsum.photos/id/1040/800/600" />,
    category: "Category",
    excerpt: "A short line from the blog post goes here.",
    date: "13 Oct 2026",
  },
  {
    title: "Blog post title goes here",
    link: "#",
    media: <Image alt="" src="https://picsum.photos/id/1043/800/600" />,
    category: "Category",
    excerpt: "A short line from the blog post goes here.",
    date: "8 Oct 2026",
  },
  {
    title: "Blog post title goes here",
    link: "#",
    media: <Image alt="" src="https://picsum.photos/id/1047/800/600" />,
    category: "Category",
    excerpt: "A short line from the blog post goes here.",
    date: "6 Oct 2026",
  },
];

const Example = () => (
  <Blog
    description="A short line about the blog goes here."
    eyebrow="Blog"
    layout="rows"
    posts={posts}
    title="Your headline goes here"
  />
);

export default Example;

Filter by category

filter sets a chip for every category over the blog posts, All first, and shows only the chosen category's blog posts.

Blog

Your headline goes here

A short line about the blog goes here.

import { Blog, type BlogPost } from "@produkto/ui/Blog";
import { Image } from "@produkto/ui/Image";

const posts: BlogPost[] = [
  {
    title: "Blog post title goes here",
    link: "#",
    media: <Image alt="" src="https://picsum.photos/id/1050/800/450" />,
    category: "Category 1",
    excerpt: "A short line from the blog post goes here.",
    date: "2 Nov 2026",
  },
  {
    title: "Blog post title goes here",
    link: "#",
    media: <Image alt="" src="https://picsum.photos/id/1051/800/450" />,
    category: "Category 2",
    excerpt: "A short line from the blog post goes here.",
    date: "18 Oct 2026",
  },
  {
    title: "Blog post title goes here",
    link: "#",
    media: <Image alt="" src="https://picsum.photos/id/1053/800/450" />,
    category: "Category 3",
    excerpt: "A short line from the blog post goes here.",
    date: "1 Oct 2026",
  },
];

const Example = () => (
  <Blog
    description="A short line about the blog goes here."
    eyebrow="Blog"
    filter
    posts={posts}
    title="Your headline goes here"
  />
);

export default Example;

Blog header: featured blog post

layout="wide" sets each blog post across the band on a card, its picture beside its category, title, line and date: the newest one, set large under the blog's title.

Blog

Your headline goes here

import { Blog, type BlogPost } from "@produkto/ui/Blog";
import { Image } from "@produkto/ui/Image";

const posts: BlogPost[] = [
  {
    title: "Blog post title goes here",
    link: "#",
    media: <Image alt="" src="https://picsum.photos/id/1036/1200/900" />,
    category: "Category",
    excerpt: "A short line from the blog post goes here.",
    date: "10 Nov 2026",
  },
];

const Example = () => (
  <Blog
    eyebrow="Blog"
    layout="wide"
    posts={posts}
    title="Your headline goes here"
  />
);

export default Example;

Two columns

columns={2} gives each blog post half the row, so its picture is larger.

Blog

Your headline goes here

A short line about the blog goes here.

import { Blog, type BlogPost } from "@produkto/ui/Blog";
import { Image01Icon } from "@hugeicons/core-free-icons";
import { Icon } from "@produkto/ui/Icon";

const media = (
  <div className="flex aspect-video items-center justify-center rounded-2xl border border-border bg-muted text-muted-foreground">
    <Icon icon={Image01Icon} size={32} />
  </div>
);

const posts: BlogPost[] = [
  {
    title: "Blog post title goes here",
    link: "#",
    media,
    category: "Category",
    excerpt:
      "A short line from the blog post goes here, a sentence or two about it.",
    author: { name: "User 1" },
    date: "Jan 12, 2026",
  },
  {
    title: "Blog post title goes here",
    link: "#",
    media,
    category: "Category",
    excerpt:
      "A short line from the blog post goes here, a sentence or two about it.",
    author: { name: "User 2" },
    date: "Jan 8, 2026",
  },
];

const Example = () => (
  <Blog
    columns={2}
    description="A short line about the blog goes here."
    eyebrow="Blog"
    posts={posts}
    title="Your headline goes here"
  />
);

export default Example;

With actions

actions sit under the grid, such as a link to every blog post.

Blog

Your headline goes here

A short line about the blog goes here.

import { Blog, type BlogPost } from "@produkto/ui/Blog";
import { Image01Icon } from "@hugeicons/core-free-icons";
import { Icon } from "@produkto/ui/Icon";
import type { BlockAction } from "@produkto/ui/Section";

const media = (
  <div className="flex aspect-video items-center justify-center rounded-2xl border border-border bg-muted text-muted-foreground">
    <Icon icon={Image01Icon} size={32} />
  </div>
);

const posts: BlogPost[] = [
  {
    title: "Blog post title goes here",
    link: "#",
    media,
    category: "Category",
    excerpt:
      "A short line from the blog post goes here, a sentence or two about it.",
    author: { name: "User 1" },
    date: "Jan 12, 2026",
  },
  {
    title: "Blog post title goes here",
    link: "#",
    media,
    category: "Category",
    excerpt:
      "A short line from the blog post goes here, a sentence or two about it.",
    author: { name: "User 2" },
    date: "Jan 8, 2026",
  },
  {
    title: "Blog post title goes here",
    link: "#",
    media,
    category: "Category",
    excerpt:
      "A short line from the blog post goes here, a sentence or two about it.",
    author: { name: "User 3" },
    date: "Jan 2, 2026",
  },
];

const actions: BlockAction[] = [
  { label: "Button", link: "#", appearance: "outline" },
];

const Example = () => (
  <Blog
    actions={actions}
    description="A short line about the blog goes here."
    eyebrow="Blog"
    posts={posts}
    title="Your headline goes here"
  />
);

export default Example;

Without pictures

Blog posts without media lead with their category and title.

Blog

Your headline goes here

A short line about the blog goes here.

import { Blog, type BlogPost } from "@produkto/ui/Blog";

const posts: BlogPost[] = [
  {
    title: "Blog post title goes here",
    link: "#",
    category: "Category",
    excerpt:
      "A short line from the blog post goes here, a sentence or two about it.",
    author: { name: "User 1" },
    date: "Jan 12, 2026",
  },
  {
    title: "Blog post title goes here",
    link: "#",
    category: "Category",
    excerpt:
      "A short line from the blog post goes here, a sentence or two about it.",
    author: { name: "User 2" },
    date: "Jan 8, 2026",
  },
  {
    title: "Blog post title goes here",
    link: "#",
    category: "Category",
    excerpt:
      "A short line from the blog post goes here, a sentence or two about it.",
    author: { name: "User 3" },
    date: "Jan 2, 2026",
  },
];

const Example = () => (
  <Blog
    description="A short line about the blog goes here."
    eyebrow="Blog"
    posts={posts}
    title="Your headline goes here"
  />
);

export default Example;

Blog header: with categories

The blog page's opening, a Hero with layout="stacked", its title over a chip for every category, each a link to that category's blog posts.

Blog

Your headline goes here

A short line about the blog goes here.

import { Button } from "@produkto/ui/Button";
import { Hero } from "@produkto/ui/Hero";

const categories = ["All", "Category 1", "Category 2", "Category 3"];

const Example = () => (
  <Hero
    description="A short line about the blog goes here."
    eyebrow="Blog"
    layout="stacked"
    muted
    title="Your headline goes here"
  >
    <div className="flex flex-wrap gap-2">
      {categories.map((category, i) => (
        <Button
          key={category}
          appearance={i === 0 ? "solid" : "outline"}
          borderRadius="full"
          size="sm"
          href="#"
        >
          {category}
        </Button>
      ))}
    </div>
  </Hero>
);

export default Example;

Blog post header: title over photo

A blog post's opening, a Hero with layout="stacked": the breadcrumbs, the title and the BlogByline set left over a wide photo.

Blog post title goes here

User 110 Nov 2026
import { BlogByline } from "@produkto/ui/Blog";
import { Hero } from "@produkto/ui/Hero";
import { Image } from "@produkto/ui/Image";

const Example = () => (
  <Hero
    breadcrumbs={[
      { label: "Item 1", link: "#" },
      { label: "Item 2", link: "#" },
    ]}
    layout="stacked"
    media={
      <Image
        alt=""
        className="aspect-[21/9] w-full rounded-2xl object-cover"
        src="https://picsum.photos/id/1039/1600/686"
      />
    }
    title="Blog post title goes here"
  >
    <BlogByline author={{ name: "User 1" }} date="10 Nov 2026" />
  </Hero>
);

export default Example;

Blog post header: title beside photo

A Hero with layout="split" sets the category, the title, the line and the BlogByline beside the blog post's photo.

Category

Blog post title goes here

A short line from the blog post goes here.

User 110 Nov 2026
import { BlogByline } from "@produkto/ui/Blog";
import { Hero } from "@produkto/ui/Hero";
import { Image } from "@produkto/ui/Image";

const Example = () => (
  <Hero
    description="A short line from the blog post goes here."
    eyebrow="Category"
    layout="split"
    media={
      <Image
        alt=""
        className="aspect-4/3 w-full rounded-2xl object-cover"
        src="https://picsum.photos/id/1041/1200/900"
      />
    }
    title="Blog post title goes here"
  >
    <BlogByline author={{ name: "User 1" }} date="10 Nov 2026" />
  </Hero>
);

export default Example;

Blog post header: over a photo

cover sets the category, the title and the BlogByline over the blog post's photo, here held to a band's height with className.

Category

Blog post title goes here

User 110 Nov 2026
import { BlogByline } from "@produkto/ui/Blog";
import { Hero } from "@produkto/ui/Hero";
import { Image } from "@produkto/ui/Image";

const Example = () => (
  <Hero
    backdrop={<Image alt="" src="https://picsum.photos/id/1044/1920/800" />}
    className="min-h-96"
    cover
    eyebrow="Category"
    layout="stacked"
    place="foot"
    title="Blog post title goes here"
  >
    <BlogByline author={{ name: "User 1" }} date="10 Nov 2026" />
  </Hero>
);

export default Example;

Blog post header: centred

A centred Hero sets the category, the title, the line and the BlogByline on one axis over a wide photo.

Category

Blog post title goes here

A short line from the blog post goes here.

User 110 Nov 2026
import { BlogByline } from "@produkto/ui/Blog";
import { Hero } from "@produkto/ui/Hero";
import { Image } from "@produkto/ui/Image";

const Example = () => (
  <Hero
    description="A short line from the blog post goes here."
    eyebrow="Category"
    media={
      <Image
        alt=""
        className="aspect-[21/9] w-full rounded-2xl object-cover"
        src="https://picsum.photos/id/1042/1600/686"
      />
    }
    title="Blog post title goes here"
  >
    <BlogByline author={{ name: "User 1" }} date="10 Nov 2026" />
  </Hero>
);

export default Example;

API Reference

Blog

BlogProps · blocks/Blog/Blog.types.ts
PropTypeDefault
postsBlogPost[]-
layoutBlogLayout"cards" | "index" | "featured" | "rows" | "wide""cards"
filterbooleanfalse
columnsBlogColumns2 | 3 | 43
actionsBlockAction[]-
idstring-
eyebrowstring-
titleReactNode-
descriptionReactNode-
alignSectionAlign"start" | "center" | "end""start"
mutedbooleanfalse
classNamestring-

BlogPosts

PropTypeDefault
postsrequiredBlogPost[]-
layoutrequiredBlogLayout"cards" | "index" | "featured" | "rows" | "wide"-
columnsrequiredBlogColumns2 | 3 | 4-

BlogByline

PropTypeDefault
authorBlogAuthor-
datestring-

BlogGrid

BlogGridProps
PropTypeDefault
postsrequiredBlogPost[]-
columnsBlogColumns2 | 3 | 43
actionsBlockAction[]-
alignSectionAlign"start" | "center" | "end""start"
headingLevelBlogHeadingLevel2 | 33

BlogPost

used by posts
PropTypeDefault
titlerequiredstring-
linkrequiredstring-
mediaReactNode-
categorystring-
categoryLinkstring-
excerptstring-
authorBlogAuthor-
datestring-

BlockAction

used by actions
PropTypeDefault
appearanceButtonAppearance"solid" | "soft" | "outline" | "transparent"-
toneButtonTone"neutral" | "accent" | "destructive" | "success" | "warning" | "info"-
iconReactNode-
iconOnlyboolean-
borderRadiusBlockActionBorderRadius"none" | "xs" | "sm" | "base" | "lg" | "xl" | "full"-
labelrequiredstring-
linkrequiredstring-

BlogAuthor

used by its parts
PropTypeDefault
namerequiredstring-
avatarstring-