ui / src /components /theme-provider.tsx
ZuhairAhmed's picture
working iteration
11e46c7
Raw
History Blame Contribute Delete
381 Bytes
"use client";
import * as React from "react";
import { ThemeProvider as NextThemesProvider } from "next-themes";
export function ThemeProvider({ children }: React.PropsWithChildren<{}>) {
return (
<NextThemesProvider
attribute="class"
enableSystem
disableTransitionOnChange
storageKey="theme"
>
{children}
</NextThemesProvider>
);
}