A start-aligned page title over a line of lead text and two calls to action.
page-header, title, intro, actions
npx shadcn@latest add https://ner.sh/r/page-header-actions.json{
"registries": {
"@nertia": "https://ner.sh/r/{name}.json"
}
}npx shadcn@latest add @nertia/page-header-actionsnpm create nersh@latest my-site -- --site https://nertia.ai/components/page-header/page-header-actions/site.json scaffolds a project from it.{
"slug": "page-header-actions",
"mode": "builder",
"status": "draft",
"skinId": "zinc",
"composition": {
"id": "page-header-actions",
"sections": [
{
"id": "layout-section",
"instanceId": "pha-band-r1",
"layout": "stack",
"children": [
{
"id": "layout-container",
"instanceId": "pha-stack-r1",
"layout": "stack",
"children": [
{
"id": "block-text",
"instanceId": "pha-eyebrow-r1"
},
{
"id": "block-heading",
"instanceId": "pha-heading-r1"
},
{
"id": "block-text",
"instanceId": "pha-lead-r1"
},
{
"id": "layout-container",
"instanceId": "pha-actions-r1",
"layout": "cluster",
"children": [
{
"id": "block-button",
"instanceId": "pha-primary-r1"
},
{
"id": "block-button",
"instanceId": "pha-secondary-r1"
}
]
}
]
}
],
"component": "page-header-actions@1"
}
]
},
"copy": {
"pha-band-r1.coverImage": "",
"pha-band-r1.coverStyle": "",
"pha-band-r1.coverScrim": "",
"pha-band-r1.anchor": "",
"pha-band-r1.navLabel": "",
"pha-band-r1.navHref": "",
"pha-band-r1.navSkip": "",
"pha-band-r1.landmark": "",
"pha-band-r1.tone": "",
"pha-band-r1.gutter": "",
"pha-band-r1.shape": "",
"pha-band-r1.padding": "",
"pha-band-r1.sticky": "",
"pha-band-r1.reveal": "",
"pha-band-r1.dismissible": "",
"pha-band-r1.width": "",
"pha-band-r1.gradient": "",
"pha-stack-r1.align": "",
"pha-stack-r1.phone": "",
"pha-eyebrow-r1.text": "Section label",
"pha-eyebrow-r1.textStyle": "eyebrow",
"pha-heading-r1.text": "Page title",
"pha-heading-r1.level": "h1",
"pha-lead-r1.text": "One or two sentences that say what this page covers.",
"pha-lead-r1.textStyle": "lead",
"pha-actions-r1.align": "",
"pha-actions-r1.phone": "",
"pha-primary-r1.label": "Get started",
"pha-primary-r1.href": "#contact",
"pha-primary-r1.variant": "",
"pha-primary-r1.size": "",
"pha-primary-r1.tone": "",
"pha-primary-r1.width": "",
"pha-primary-r1.icon": "",
"pha-primary-r1.iconOnly": "",
"pha-secondary-r1.label": "Learn more",
"pha-secondary-r1.href": "#about",
"pha-secondary-r1.variant": "ghost",
"pha-secondary-r1.size": "",
"pha-secondary-r1.tone": "",
"pha-secondary-r1.width": "",
"pha-secondary-r1.icon": "",
"pha-secondary-r1.iconOnly": ""
}
}
{
"slug": "page-header-actions",
"mode": "builder",
"status": "draft",
"skinId": "zinc",
"composition": {
"id": "page-header-actions",
"sections": [
{
"id": "layout-section",
"instanceId": "pha-band-r1",
"layout": "stack",
"children": [
{
"id": "layout-container",
"instanceId": "pha-stack-r1",
"layout": "stack",
"children": [
{
"id": "block-text",
"instanceId": "pha-eyebrow-r1"
},
{
"id": "block-heading",
"instanceId": "pha-heading-r1"
},
{
"id": "block-text",
"instanceId": "pha-lead-r1"
},
{
"id": "layout-container",
"instanceId": "pha-actions-r1",
"layout": "cluster",
"children": [
{
"id": "block-button",
"instanceId": "pha-primary-r1"
},
{
"id": "block-button",
"instanceId": "pha-secondary-r1"
}
]
}
]
}
],
"component": "page-header-actions@1"
}
]
},
"copy": {
"pha-band-r1.coverImage": "",
"pha-band-r1.coverStyle": "",
"pha-band-r1.coverScrim": "",
"pha-band-r1.anchor": "",
"pha-band-r1.navLabel": "",
"pha-band-r1.navHref": "",
"pha-band-r1.navSkip": "",
"pha-band-r1.landmark": "",
"pha-band-r1.tone": "",
"pha-band-r1.gutter": "",
"pha-band-r1.shape": "",
"pha-band-r1.padding": "",
"pha-band-r1.sticky": "",
"pha-band-r1.reveal": "",
"pha-band-r1.dismissible": "",
"pha-band-r1.width": "",
"pha-band-r1.gradient": "",
"pha-stack-r1.align": "",
"pha-stack-r1.phone": "",
"pha-eyebrow-r1.text": "Section label",
"pha-eyebrow-r1.textStyle": "eyebrow",
"pha-heading-r1.text": "Page title",
"pha-heading-r1.level": "h1",
"pha-lead-r1.text": "One or two sentences that say what this page covers.",
"pha-lead-r1.textStyle": "lead",
"pha-actions-r1.align": "",
"pha-actions-r1.phone": "",
"pha-primary-r1.label": "Get started",
"pha-primary-r1.href": "#contact",
"pha-primary-r1.variant": "",
"pha-primary-r1.size": "",
"pha-primary-r1.tone": "",
"pha-primary-r1.width": "",
"pha-primary-r1.icon": "",
"pha-primary-r1.iconOnly": "",
"pha-secondary-r1.label": "Learn more",
"pha-secondary-r1.href": "#about",
"pha-secondary-r1.variant": "ghost",
"pha-secondary-r1.size": "",
"pha-secondary-r1.tone": "",
"pha-secondary-r1.width": "",
"pha-secondary-r1.icon": "",
"pha-secondary-r1.iconOnly": ""
},
"ds": {}
}
import type { SectionRegistry } from '@nersh/render';
import { Component as BlockButton } from '@/sections/block-button/Component';
import { Component as BlockHeading } from '@/sections/block-heading/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-button': BlockButton,
'block-heading': BlockHeading,
'block-text': BlockText,
'layout-container': LayoutContainer,
'layout-section': LayoutSection,
};
"use client";
import { SiteRenderer } from "@nersh/render";
import { registry } from "./page-header-actions.registry";
import siteJson from "./page-header-actions.site.json";
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const site = siteJson as any;
export default function PageHeaderActions() {
return <SiteRenderer site={site} registry={registry} />;
}