{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "site-frame",
  "title": "Site Frame",
  "description": "Theme provider and skip link around the pages of a site, with the system theme by default.",
  "dependencies": [
    "@vllnt/ui@^0.3.0",
    "next-themes"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "registry/default/site-frame/site-frame.tsx",
      "content": "import type { ThemeProviderProps } from \"next-themes\";\nimport type { ReactNode } from \"react\";\n\nimport { SkipLink } from \"@vllnt/ui\";\nimport { ThemeProvider } from \"@vllnt/ui\";\n\n/** Props for {@link SiteFrame}. */\nexport type SiteFrameProps = {\n  /** The header, a `SiteMain`, the footer and the theme bar, in that order. */\n  children: ReactNode;\n  /** The text of the skip link, which jumps to the page. */\n  skipLabel: string;\n};\n\n/**\n * `next-themes` set up for a site shell: the `class` attribute, the system\n * theme by default, and no transition when the theme changes. Any prop replaces\n * its setting.\n *\n * @example\n * <SiteThemeProvider enableColorScheme={false}>{children}</SiteThemeProvider>\n */\nconst SiteThemeProvider = /* @__PURE__ */ named(\n  \"SiteThemeProvider\",\n  (props: ThemeProviderProps): React.ReactElement => (\n    <ThemeProvider\n      attribute=\"class\"\n      defaultTheme=\"system\"\n      disableTransitionOnChange\n      enableSystem\n      {...props}\n    />\n  ),\n);\n\n/**\n * The theme provider and the skip link around the body of every page: the\n * default composition of {@link SiteThemeProvider} and `SkipLink`. The skip link\n * jumps to `SiteMain`. The app keeps the `html` and `body` elements, its fonts\n * and its providers.\n *\n * @example\n * <SiteFrame skipLabel=\"Skip to content\">\n *   <header />\n *   <SiteMain>{children}</SiteMain>\n * </SiteFrame>\n */\nconst SiteFrame = /* @__PURE__ */ named(\n  \"SiteFrame\",\n  ({ children, skipLabel }: SiteFrameProps): React.ReactElement => (\n    <SiteThemeProvider>\n      <SkipLink>{skipLabel}</SkipLink>\n      {children}\n    </SiteThemeProvider>\n  ),\n);\n\nexport { SiteFrame, SiteThemeProvider };\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"
  ]
}
