A context component that controls the global color scheme. Right now it does this by modifying inline styles on the :root element. This is not ideal, and it will be changed in later versions once we decide on a css-in-js solution.
import ThemeProvider from "@/registry/nextjs/components/theme";
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en">
<body>
<ThemeProvider>{children}</ThemeProvider>
</body>
</html>
);
}
Note: Other React frameworks are not currently supported, but they might still work. Try at your own risk.
Props unique to this component.
Props with globally-defined behavior that are used in multiple components.