MCPcopy Create free account
hub / github.com/prisma/prisma-examples / Document

Function Document

accelerate/remix-starter/app/root.tsx:97–127  ·  view source on GitHub ↗
({
  children,
  title,
  className,
}: {
  children: React.ReactNode;
  title?: string;
  className?: string;
})

Source from the content-addressed store, hash-verified

95}
96
97function Document({
98 children,
99 title,
100 className,
101}: {
102 children: React.ReactNode;
103 title?: string;
104 className?: string;
105}) {
106 return (
107 <React.StrictMode>
108 <html
109 className={cn(className, "bg-background text-foreground")}
110 lang="en"
111 >
112 <head>
113 <meta charSet="utf-8" />
114 <meta name="viewport" content="width=device-width,initial-scale=1" />
115 {title ? <title>{title}</title> : null}
116 <Meta />
117 <Links />
118 </head>
119 <body>
120 {children}
121 <ScrollRestoration />
122 <Scripts />
123 </body>
124 </html>
125 </React.StrictMode>
126 );
127}

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected