A heading over four dated steps down one rule, each with a marker, a year and a sentence.
content, timeline, story, history
npx shadcn@latest add https://ner.sh/r/timeline-story.json{
"registries": {
"@nertia": "https://ner.sh/r/{name}.json"
}
}npx shadcn@latest add @nertia/timeline-storynpm create nersh@latest my-site -- --site https://nertia.ai/components/content/timeline-story/site.json scaffolds a project from it.{
"slug": "timeline-story",
"mode": "builder",
"status": "draft",
"skinId": "zinc",
"composition": {
"id": "timeline-story",
"sections": [
{
"id": "layout-section",
"instanceId": "story-band-r1",
"layout": "stack",
"children": [
{
"id": "layout-container",
"instanceId": "story-intro-r1",
"layout": "stack",
"children": [
{
"id": "block-heading",
"instanceId": "story-heading-r1"
},
{
"id": "block-text",
"instanceId": "story-sub-r1"
}
]
},
{
"id": "layout-container",
"instanceId": "story-timeline-r1",
"layout": "timeline",
"children": [
{
"id": "layout-column",
"instanceId": "story-item-1-r1",
"children": [
{
"id": "block-heading",
"instanceId": "story-item-1-title-r1"
},
{
"id": "block-text",
"instanceId": "story-item-1-body-r1"
}
]
},
{
"id": "layout-column",
"instanceId": "story-item-2-r1",
"children": [
{
"id": "block-heading",
"instanceId": "story-item-2-title-r1"
},
{
"id": "block-text",
"instanceId": "story-item-2-body-r1"
}
]
},
{
"id": "layout-column",
"instanceId": "story-item-3-r1",
"children": [
{
"id": "block-heading",
"instanceId": "story-item-3-title-r1"
},
{
"id": "block-text",
"instanceId": "story-item-3-body-r1"
}
]
},
{
"id": "layout-column",
"instanceId": "story-item-4-r1",
"children": [
{
"id": "block-heading",
"instanceId": "story-item-4-title-r1"
},
{
"id": "block-text",
"instanceId": "story-item-4-body-r1"
}
]
}
]
}
],
"component": "timeline-story@1"
}
]
},
"copy": {
"story-band-r1.coverImage": "",
"story-band-r1.coverStyle": "",
"story-band-r1.coverScrim": "",
"story-band-r1.anchor": "",
"story-band-r1.navLabel": "",
"story-band-r1.navHref": "",
"story-band-r1.navSkip": "",
"story-band-r1.landmark": "",
"story-band-r1.tone": "",
"story-band-r1.gutter": "",
"story-band-r1.shape": "",
"story-band-r1.padding": "",
"story-band-r1.sticky": "",
"story-band-r1.reveal": "",
"story-band-r1.dismissible": "",
"story-band-r1.width": "narrow",
"story-band-r1.gradient": "",
"story-intro-r1.align": "",
"story-intro-r1.phone": "",
"story-intro-r1.dividers": "",
"story-intro-r1.tone": "",
"story-heading-r1.text": "A heading for this section",
"story-heading-r1.level": "h2",
"story-heading-r1.size": "",
"story-sub-r1.text": "One sentence that introduces this section.",
"story-sub-r1.footnoteMark": "",
"story-sub-r1.textStyle": "",
"story-timeline-r1.align": "",
"story-timeline-r1.phone": "",
"story-timeline-r1.dividers": "",
"story-timeline-r1.tone": "",
"story-item-1-r1.pad": "",
"story-item-1-r1.sticky": "",
"story-item-1-title-r1.text": "2016",
"story-item-1-title-r1.level": "h3",
"story-item-1-title-r1.size": "",
"story-item-1-body-r1.text": "A sentence or two on this point.",
"story-item-1-body-r1.footnoteMark": "",
"story-item-1-body-r1.textStyle": "",
"story-item-2-r1.pad": "",
"story-item-2-r1.sticky": "",
"story-item-2-title-r1.text": "2019",
"story-item-2-title-r1.level": "h3",
"story-item-2-title-r1.size": "",
"story-item-2-body-r1.text": "A sentence or two on this point.",
"story-item-2-body-r1.footnoteMark": "",
"story-item-2-body-r1.textStyle": "",
"story-item-3-r1.pad": "",
"story-item-3-r1.sticky": "",
"story-item-3-title-r1.text": "2022",
"story-item-3-title-r1.level": "h3",
"story-item-3-title-r1.size": "",
"story-item-3-body-r1.text": "A sentence or two on this point.",
"story-item-3-body-r1.footnoteMark": "",
"story-item-3-body-r1.textStyle": "",
"story-item-4-r1.pad": "",
"story-item-4-r1.sticky": "",
"story-item-4-title-r1.text": "2025",
"story-item-4-title-r1.level": "h3",
"story-item-4-title-r1.size": "",
"story-item-4-body-r1.text": "A sentence or two on this point.",
"story-item-4-body-r1.footnoteMark": "",
"story-item-4-body-r1.textStyle": ""
}
}
{
"slug": "timeline-story",
"mode": "builder",
"status": "draft",
"skinId": "zinc",
"composition": {
"id": "timeline-story",
"sections": [
{
"id": "layout-section",
"instanceId": "story-band-r1",
"layout": "stack",
"children": [
{
"id": "layout-container",
"instanceId": "story-intro-r1",
"layout": "stack",
"children": [
{
"id": "block-heading",
"instanceId": "story-heading-r1"
},
{
"id": "block-text",
"instanceId": "story-sub-r1"
}
]
},
{
"id": "layout-container",
"instanceId": "story-timeline-r1",
"layout": "timeline",
"children": [
{
"id": "layout-column",
"instanceId": "story-item-1-r1",
"children": [
{
"id": "block-heading",
"instanceId": "story-item-1-title-r1"
},
{
"id": "block-text",
"instanceId": "story-item-1-body-r1"
}
]
},
{
"id": "layout-column",
"instanceId": "story-item-2-r1",
"children": [
{
"id": "block-heading",
"instanceId": "story-item-2-title-r1"
},
{
"id": "block-text",
"instanceId": "story-item-2-body-r1"
}
]
},
{
"id": "layout-column",
"instanceId": "story-item-3-r1",
"children": [
{
"id": "block-heading",
"instanceId": "story-item-3-title-r1"
},
{
"id": "block-text",
"instanceId": "story-item-3-body-r1"
}
]
},
{
"id": "layout-column",
"instanceId": "story-item-4-r1",
"children": [
{
"id": "block-heading",
"instanceId": "story-item-4-title-r1"
},
{
"id": "block-text",
"instanceId": "story-item-4-body-r1"
}
]
}
]
}
],
"component": "timeline-story@1"
}
]
},
"copy": {
"story-band-r1.coverImage": "",
"story-band-r1.coverStyle": "",
"story-band-r1.coverScrim": "",
"story-band-r1.anchor": "",
"story-band-r1.navLabel": "",
"story-band-r1.navHref": "",
"story-band-r1.navSkip": "",
"story-band-r1.landmark": "",
"story-band-r1.tone": "",
"story-band-r1.gutter": "",
"story-band-r1.shape": "",
"story-band-r1.padding": "",
"story-band-r1.sticky": "",
"story-band-r1.reveal": "",
"story-band-r1.dismissible": "",
"story-band-r1.width": "narrow",
"story-band-r1.gradient": "",
"story-intro-r1.align": "",
"story-intro-r1.phone": "",
"story-intro-r1.dividers": "",
"story-intro-r1.tone": "",
"story-heading-r1.text": "A heading for this section",
"story-heading-r1.level": "h2",
"story-heading-r1.size": "",
"story-sub-r1.text": "One sentence that introduces this section.",
"story-sub-r1.footnoteMark": "",
"story-sub-r1.textStyle": "",
"story-timeline-r1.align": "",
"story-timeline-r1.phone": "",
"story-timeline-r1.dividers": "",
"story-timeline-r1.tone": "",
"story-item-1-r1.pad": "",
"story-item-1-r1.sticky": "",
"story-item-1-title-r1.text": "2016",
"story-item-1-title-r1.level": "h3",
"story-item-1-title-r1.size": "",
"story-item-1-body-r1.text": "A sentence or two on this point.",
"story-item-1-body-r1.footnoteMark": "",
"story-item-1-body-r1.textStyle": "",
"story-item-2-r1.pad": "",
"story-item-2-r1.sticky": "",
"story-item-2-title-r1.text": "2019",
"story-item-2-title-r1.level": "h3",
"story-item-2-title-r1.size": "",
"story-item-2-body-r1.text": "A sentence or two on this point.",
"story-item-2-body-r1.footnoteMark": "",
"story-item-2-body-r1.textStyle": "",
"story-item-3-r1.pad": "",
"story-item-3-r1.sticky": "",
"story-item-3-title-r1.text": "2022",
"story-item-3-title-r1.level": "h3",
"story-item-3-title-r1.size": "",
"story-item-3-body-r1.text": "A sentence or two on this point.",
"story-item-3-body-r1.footnoteMark": "",
"story-item-3-body-r1.textStyle": "",
"story-item-4-r1.pad": "",
"story-item-4-r1.sticky": "",
"story-item-4-title-r1.text": "2025",
"story-item-4-title-r1.level": "h3",
"story-item-4-title-r1.size": "",
"story-item-4-body-r1.text": "A sentence or two on this point.",
"story-item-4-body-r1.footnoteMark": "",
"story-item-4-body-r1.textStyle": ""
},
"ds": {}
}
import type { SectionRegistry } from '@nersh/render';
import { Component as BlockHeading } from '@/sections/block-heading/Component';
import { Component as BlockText } from '@/sections/block-text/Component';
import { Component as LayoutColumn } from '@/sections/layout-column/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-text': BlockText,
'layout-column': LayoutColumn,
'layout-container': LayoutContainer,
'layout-section': LayoutSection,
};
"use client";
import { SiteRenderer } from "@nersh/render";
import { registry } from "./timeline-story.registry";
import siteJson from "./timeline-story.site.json";
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const site = siteJson as any;
export default function TimelineStory() {
return <SiteRenderer site={site} registry={registry} />;
}
The registry source and the @nersh/render renderer are MIT licensed.