A heading and a line of support over three post cards, each with a photo, a date, a title and an excerpt.
blog, posts, articles, grid
npx shadcn@latest add https://ner.sh/r/blog-post-grid.json{
"registries": {
"@nertia": "https://ner.sh/r/{name}.json"
}
}npx shadcn@latest add @nertia/blog-post-gridnpm create nersh@latest my-site -- --site https://nertia.ai/components/blog/blog-post-grid/site.json scaffolds a project from it.{
"slug": "blog-post-grid",
"mode": "builder",
"status": "draft",
"skinId": "zinc",
"composition": {
"id": "blog-post-grid",
"sections": [
{
"id": "layout-section",
"instanceId": "blog-band-r1",
"layout": "stack",
"children": [
{
"id": "layout-container",
"instanceId": "blog-intro-r1",
"layout": "stack",
"children": [
{
"id": "block-heading",
"instanceId": "blog-heading-r1"
},
{
"id": "block-text",
"instanceId": "blog-sub-r1"
}
]
},
{
"id": "layout-container",
"instanceId": "blog-grid-r1",
"layout": "grid-3",
"children": [
{
"id": "block-post-card",
"instanceId": "post-1-r1"
},
{
"id": "block-post-card",
"instanceId": "post-2-r1"
},
{
"id": "block-post-card",
"instanceId": "post-3-r1"
}
]
}
],
"component": "blog-post-grid@1"
}
]
},
"copy": {
"blog-band-r1.coverImage": "",
"blog-band-r1.coverStyle": "",
"blog-band-r1.coverScrim": "",
"blog-band-r1.anchor": "",
"blog-band-r1.navLabel": "",
"blog-band-r1.navHref": "",
"blog-band-r1.navSkip": "",
"blog-band-r1.landmark": "",
"blog-band-r1.tone": "",
"blog-band-r1.gutter": "",
"blog-band-r1.shape": "",
"blog-band-r1.padding": "",
"blog-band-r1.sticky": "",
"blog-band-r1.reveal": "",
"blog-band-r1.dismissible": "",
"blog-band-r1.width": "",
"blog-band-r1.gradient": "",
"blog-intro-r1.align": "center",
"blog-intro-r1.phone": "",
"blog-heading-r1.text": "From the blog",
"blog-heading-r1.level": "h2",
"blog-sub-r1.text": "One sentence that introduces this section.",
"blog-sub-r1.textStyle": "",
"blog-grid-r1.align": "",
"blog-grid-r1.phone": "",
"post-1-r1.image": "",
"post-1-r1.title": "Post title one",
"post-1-r1.excerpt": "A one-line summary of the post.",
"post-1-r1.date": "March 4, 2026",
"post-1-r1.href": "#",
"post-2-r1.image": "",
"post-2-r1.title": "Post title two",
"post-2-r1.excerpt": "A one-line summary of the post.",
"post-2-r1.date": "February 18, 2026",
"post-2-r1.href": "#",
"post-3-r1.image": "",
"post-3-r1.title": "Post title three",
"post-3-r1.excerpt": "A one-line summary of the post.",
"post-3-r1.date": "January 30, 2026",
"post-3-r1.href": "#"
}
}
{
"slug": "blog-post-grid",
"mode": "builder",
"status": "draft",
"skinId": "zinc",
"composition": {
"id": "blog-post-grid",
"sections": [
{
"id": "layout-section",
"instanceId": "blog-band-r1",
"layout": "stack",
"children": [
{
"id": "layout-container",
"instanceId": "blog-intro-r1",
"layout": "stack",
"children": [
{
"id": "block-heading",
"instanceId": "blog-heading-r1"
},
{
"id": "block-text",
"instanceId": "blog-sub-r1"
}
]
},
{
"id": "layout-container",
"instanceId": "blog-grid-r1",
"layout": "grid-3",
"children": [
{
"id": "block-post-card",
"instanceId": "post-1-r1"
},
{
"id": "block-post-card",
"instanceId": "post-2-r1"
},
{
"id": "block-post-card",
"instanceId": "post-3-r1"
}
]
}
],
"component": "blog-post-grid@1"
}
]
},
"copy": {
"blog-band-r1.coverImage": "",
"blog-band-r1.coverStyle": "",
"blog-band-r1.coverScrim": "",
"blog-band-r1.anchor": "",
"blog-band-r1.navLabel": "",
"blog-band-r1.navHref": "",
"blog-band-r1.navSkip": "",
"blog-band-r1.landmark": "",
"blog-band-r1.tone": "",
"blog-band-r1.gutter": "",
"blog-band-r1.shape": "",
"blog-band-r1.padding": "",
"blog-band-r1.sticky": "",
"blog-band-r1.reveal": "",
"blog-band-r1.dismissible": "",
"blog-band-r1.width": "",
"blog-band-r1.gradient": "",
"blog-intro-r1.align": "center",
"blog-intro-r1.phone": "",
"blog-heading-r1.text": "From the blog",
"blog-heading-r1.level": "h2",
"blog-sub-r1.text": "One sentence that introduces this section.",
"blog-sub-r1.textStyle": "",
"blog-grid-r1.align": "",
"blog-grid-r1.phone": "",
"post-1-r1.image": "",
"post-1-r1.title": "Post title one",
"post-1-r1.excerpt": "A one-line summary of the post.",
"post-1-r1.date": "March 4, 2026",
"post-1-r1.href": "#",
"post-2-r1.image": "",
"post-2-r1.title": "Post title two",
"post-2-r1.excerpt": "A one-line summary of the post.",
"post-2-r1.date": "February 18, 2026",
"post-2-r1.href": "#",
"post-3-r1.image": "",
"post-3-r1.title": "Post title three",
"post-3-r1.excerpt": "A one-line summary of the post.",
"post-3-r1.date": "January 30, 2026",
"post-3-r1.href": "#"
},
"ds": {}
}
import type { SectionRegistry } from '@nersh/render';
import { Component as BlockHeading } from '@/sections/block-heading/Component';
import { Component as BlockPostCard } from '@/sections/block-post-card/Component';
import { Component as BlockText } from '@/sections/block-text/Component';
import { Component as LayoutContainer } from '@/sections/layout-container/Component';
import { Component as LayoutSection } from '@/sections/layout-section/Component';
export const registry: SectionRegistry = {
'block-heading': BlockHeading,
'block-post-card': BlockPostCard,
'block-text': BlockText,
'layout-container': LayoutContainer,
'layout-section': LayoutSection,
};
"use client";
import { SiteRenderer } from "@nersh/render";
import { registry } from "./blog-post-grid.registry";
import siteJson from "./blog-post-grid.site.json";
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const site = siteJson as any;
export default function BlogPostGrid() {
return <SiteRenderer site={site} registry={registry} />;
}