titles/app/providers.tsx
ChrQR 6dd60de8f4
All checks were successful
Vercel Preview Deployment / Deploy-Preview (push) Successful in 2m7s
Set up next-theme and dark mode with toggle example
2024-05-17 11:16:20 +02:00

15 lines
381 B
TypeScript

"use client";
import { NextUIProvider } from "@nextui-org/react";
import { ThemeProvider as NextThemesProvider } from "next-themes";
export function Providers({ children }: { children: React.ReactNode }) {
return (
<NextUIProvider>
<NextThemesProvider attribute="class" defaultTheme="dark">
{children}
</NextThemesProvider>
</NextUIProvider>
);
}