{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "site-main",
  "title": "Site Main",
  "description": "The page landmark of a site: a main element with the id that the skip link jumps to.",
  "dependencies": [
    "@vllnt/ui@^0.3.0"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "registry/default/site-main/site-main.tsx",
      "content": "import type { ReactNode } from \"react\";\n\n\n/** Props for {@link SiteMain}. */\nexport type SiteMainProps = {\n  /** The page. */\n  children: ReactNode;\n  /** Classes for the `main` element, e.g. `flex-1` in a flex column body. */\n  className?: string;\n};\n\n/**\n * The page landmark: `<main id=\"main\" tabIndex={-1}>`. The skip link in\n * {@link SiteFrame} targets it, and the `tabIndex` lets the jump move focus\n * into it. A page has one.\n *\n * @example\n * <SiteMain className=\"flex-1\">{children}</SiteMain>\n */\nconst SiteMain = /* @__PURE__ */ named(\n  \"SiteMain\",\n  ({ children, className }: SiteMainProps): React.ReactElement => (\n    <main className={className} id=\"main\" tabIndex={-1}>\n      {children}\n    </main>\n  ),\n);\n\nexport { SiteMain };\n\nfunction named<TComponent extends object>(\n  displayName: string,\n  component: TComponent,\n): TComponent & { displayName: string };\nfunction named<TComponent extends object, TStatics extends object>(\n  displayName: string,\n  component: TComponent,\n  statics: () => TStatics,\n): TComponent & TStatics & { displayName: string };\nfunction named(\n  displayName: string,\n  component: object,\n  statics?: () => object,\n): object {\n  return Object.assign(component, statics?.(), { displayName });\n}\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:component",
  "version": "0.3.0",
  "stability": "stable",
  "platforms": [
    "web"
  ]
}
