docs(www): add missing prop to ThemeProvider (#1447)

Co-authored-by: shadcn <m@shadcn.com>
This commit is contained in:
Abderrahim Guerfi
2023-09-18 13:47:58 +01:00
committed by GitHub
parent 7ce6c495bd
commit b838ffe8cc

View File

@@ -42,7 +42,12 @@ export default function RootLayout({ children }: RootLayoutProps) {
<html lang="en" suppressHydrationWarning>
<head />
<body>
<ThemeProvider attribute="class" defaultTheme="system" enableSystem>
<ThemeProvider
attribute="class"
defaultTheme="system"
enableSystem
disableTransitionOnChange
>
{children}
</ThemeProvider>
</body>