Skip to content

Blog

Blog Article

The body of a post beside its date and category, styled for your Markdown or MDX.

Layout and motion from the Nitip template — see it in context

Installation

$ npx shadcn@latest add https://framebrick.co/r/blocks/blog-article.json

Usage

import { BlogArticle } from "@/components/blog-article";

<BlogArticle date="Jun 25, 2026" dateTime="2026-06-25" category="Social media">
  <MDXContent />
</BlogArticle>

Props

PropTypeDefaultDescription
date / dateTimestring—Date as shown, and its machine-readable form for <time>.
categorystring—Shown under the date (beside it below 1024px).
labels{ date, category }Posted on, CategoryLabels of the two meta items.
childrenReactNode—The article: rendered Markdown / MDX / HTML. Without it, a sample article.
classNamestring—Classes for the <section>.
  • From 1024px the meta is a 300px column (date, line, category) and the body 47rem wide; below that date and category share a row above the body.
  • The body styles its h2, p, ul, ol (nested lists indent 20px, markers outside) and strong: headings get 40px above, paragraphs and lists 20px. Headings in the body are h2 — the post title above is the page's h1.
  • No motion.

AI prompt

Paste into v0, Lovable, Bolt or Claude to rebuild this block in your own project.

Create a React + Tailwind CSS block called BlogArticle.
- <section className="py-(--section-y)">, container mx-auto max-w-(--container) px-(--gutter); a column that becomes a row from 1024px (gap-12).
- Meta: a <dl> with "Posted on" (a <time>) and "Category" — labels text-sm muted, values text-lead; two columns side by side below
  1024px; from 1024px a 300px column with a border-t between the two.
- Body (children, max 47rem from 1024px, muted text): style descendants — h2 font-heading text-h3 semibold foreground with mt-10;
  p, ul, ol mt-5; lists list-disc / list-decimal pl-5, nested lists mt-1; strong semibold foreground; first child mt-0.
- Only shadcn variables and block tokens. No motion.

Be the first to know

Get new templates and components first

One short email when we release a template or a free component. No spam — unsubscribe anytime.

We use your email only for Framebrick updates. Privacy policy