We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6055986 commit f2b373cCopy full SHA for f2b373c
examples/s2-next-macros/src/app/layout.tsx
@@ -12,9 +12,10 @@
12
13
import {ClientProviders} from './provider';
14
import type { Metadata } from "next";
15
+import { Provider } from '@react-spectrum/s2';
16
17
export const metadata: Metadata = {
- title: "React Spectrum's Spectrum 2 Next Example App",
18
+ title: "Spectrum 2 + Next.js",
19
description: "Generated by create next app",
20
};
21
@@ -24,12 +25,12 @@ export default function RootLayout({
24
25
children: React.ReactNode;
26
}>) {
27
return (
- <html lang="en">
28
+ <Provider elementType="html" locale="en-US">
29
<body>
30
<ClientProviders>
31
{children}
32
</ClientProviders>
33
</body>
- </html>
34
+ </Provider>
35
);
36
}
0 commit comments