{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "author-template",
  "type": "registry:block",
  "title": "Author Template",
  "description": "Author profile page — bio header + their articles grid. Used by `/authors/[slug]` routes on a blog. The bio header is a multi-part card (avatar + name + role + bio + social links); the grid uses ArticleListGrid for the article list.",
  "author": "ofri-peretz <https://github.com/ofri-peretz>",
  "categories": [
    "blog",
    "template"
  ],
  "dependencies": [],
  "registryDependencies": [
    "https://ds.interlace.tools/r/theme.json",
    "https://ds.interlace.tools/r/cn.json",
    "https://ds.interlace.tools/r/container.json",
    "https://ds.interlace.tools/r/footer.json",
    "https://ds.interlace.tools/r/section-boundary.json",
    "https://ds.interlace.tools/r/skeleton.json",
    "https://ds.interlace.tools/r/stack.json",
    "https://ds.interlace.tools/r/topbar.json"
  ],
  "files": [
    {
      "path": "registry/interlace-ui/templates/author-template.tsx",
      "target": "components/ui/templates/author-template.tsx",
      "type": "registry:block",
      "content": "import * as React from 'react';\n\n// @interlace/author-template v1.1.0 — Interlace design system.\n// Docs, props and live preview: https://ds.interlace.tools/c/author-template\n// What changed since: https://ds.interlace.tools/c/author-template#history\n// Generated banner — keep it, the upgrade diff reads this version.\n\n/**\n * @interlace/ui — AuthorTemplate\n *\n * Author profile page — bio header + their articles grid. Used by\n * `/authors/[slug]` routes on a blog. The bio header is a multi-part\n * card (avatar + name + role + bio + social links); the grid uses\n * ArticleListGrid for the article list.\n *\n * ## MIN_VIEWPORT — 320\n */\n\nimport { cn } from '@/lib/utils';\nimport { Container } from '@/components/ui/container';\nimport { SectionBoundary } from '@/components/ui/section-boundary';\nimport { Stack } from '@/components/ui/stack';\nimport { Topbar } from '@/components/ui/patterns/topbar';\nimport { Footer } from '@/components/ui/patterns/footer';\nimport { Skeleton } from '@/components/ui/skeleton';\n\nexport const MIN_VIEWPORT = 320 as const;\n\ninterface AuthorTemplateProps extends React.ComponentProps<'div'> {\n  topbar: React.ComponentProps<typeof Topbar>;\n  /**\n   * Author bio header — consumer-supplied. Typically renders\n   * <AuthorByline /> + a paragraph + social links.\n   */\n  bio: React.ReactNode;\n  /** Article grid — typically <ArticleListGrid title=\"By Ofri\" posts={...} />. */\n  articles: React.ReactNode;\n  footer?: React.ComponentProps<typeof Footer>;\n}\n\nfunction AuthorTemplate({\n  topbar,\n  bio,\n  articles,\n  footer,\n  className,\n  ...props\n}: AuthorTemplateProps) {\n  return (\n    <div\n      data-slot=\"author-template\"\n      data-min-viewport={String(MIN_VIEWPORT)}\n      className={cn('bg-background text-foreground', className)}\n      {...props}\n    >\n      <Topbar {...topbar} />\n\n      <main>\n        <Container size=\"prose\">\n          <Stack gap=\"xl\" className=\"py-xl\">\n            <SectionBoundary name=\"author-bio\" skeletonVariant=\"author-byline\">\n              {bio}\n            </SectionBoundary>\n\n            <SectionBoundary\n              name=\"author-articles\"\n              skeletonVariant=\"article-card\"\n            >\n              {articles}\n            </SectionBoundary>\n          </Stack>\n        </Container>\n      </main>\n\n      {footer ? <Footer {...footer} /> : null}\n    </div>\n  );\n}\nAuthorTemplate.displayName = 'AuthorTemplate';\n\n/**\n * Page-level loading state — the full-page silhouette of\n * `<AuthorTemplate>`, not a single rect. Rendered by the consumer while\n * the whole route's data is in flight (`loading.tsx` in Next.js), or as\n * a `<SectionBoundary skeleton={…}>` override.\n *\n * Shapes mirror the real layout so the swap is CLS-neutral (R23). One\n * `role=\"status\"` region for the page; inner skeletons pass\n * `label={null}` so screen readers hear one announcement, not ten.\n */\nfunction AuthorTemplateSkeleton({\n  className,\n  ...props\n}: React.ComponentProps<'div'>) {\n  return (\n    <div\n      data-slot=\"author-template-skeleton\"\n      data-min-viewport={String(MIN_VIEWPORT)}\n      role=\"status\"\n      aria-busy=\"true\"\n      aria-label=\"Loading author…\"\n      className={cn('bg-background text-foreground', className)}\n      {...props}\n    >\n      <Skeleton\n        variant=\"rect\"\n        className=\"h-14 w-full rounded-none\"\n        label={null}\n      />\n      <Container size=\"prose\">\n        <Stack gap=\"xl\" className=\"py-xl\">\n          <Skeleton variant=\"author-byline\" label={null} />\n          <Skeleton variant=\"article-card\" count={3} label={null} />\n        </Stack>\n      </Container>\n    </div>\n  );\n}\nAuthorTemplateSkeleton.displayName = 'AuthorTemplateSkeleton';\nAuthorTemplate.Skeleton = AuthorTemplateSkeleton;\n\nexport { AuthorTemplate };\nexport type { AuthorTemplateProps };\n"
    }
  ],
  "meta": {
    "tier": "template",
    "client": false,
    "minViewport": 320,
    "loading": false,
    "version": "1.1.0",
    "since": "1.0.0"
  },
  "docs": "## @interlace/author-template\n\nInstalled to `components/ui/templates/author-template.tsx`.\n\n```tsx\nimport { /* … */ } from '@/components/ui/templates/author-template';\n```\n\nProps, a11y contract, live preview and source: https://ds.interlace.tools/c/author-template\n\nRequires the `@interlace/theme` CSS baseline (installed automatically as a registry dependency)."
}
