next.js/examples/with-stitches/app/layout.tsx
layout.tsx25 lines452 B
import React from "react";
import { getCssText } from "../stitches.config";

export const metadata = {
  title: "Use Stitches with Next.js",
};

export default function RootLayout({
  children,
}: {
  children: React.ReactNode;
}) {
  return (
    <html lang="en">
      <head>
        <style
          id="stitches"
          dangerouslySetInnerHTML={{ __html: getCssText() }}
        />
      </head>
      <body>{children}</body>
    </html>
  );
}
Quest for Codev2.0.0
/
SIGN IN