File tree Expand file tree Collapse file tree
packages/next/src/layouts/Root Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,6 +35,22 @@ export const metadata = {
3535type RootLayoutProps = {
3636 readonly children : React . ReactNode
3737 readonly config : Promise < SanitizedConfig >
38+ /**
39+ * Custom content to render inside the admin panel's `<head>` element.
40+ *
41+ * Use this to inject scripts, meta tags, or links — for example, analytics
42+ * snippets via `next/script`, custom favicons, or preconnect hints.
43+ *
44+ * @example
45+ * ```tsx
46+ * import Script from 'next/script'
47+ *
48+ * <RootLayout
49+ * head={<Script src="https://example.com/analytics.js" strategy="afterInteractive" />}
50+ * {...rest}
51+ * />
52+ * ```
53+ */
3854 readonly head ?: React . ReactNode
3955 readonly htmlProps ?: React . HtmlHTMLAttributes < HTMLHtmlElement >
4056 readonly importMap : ImportMap
You can’t perform that action at this time.
0 commit comments