Loading...
Loading...
Loading...
Wraps the app in next-themes with class-based dark mode.
Install
npx bouncekit@latest add themeproviderImport
import { ThemeProvider } from "@/components/shared/theme-provider"import { ThemeProvider } from "@/components/shared/theme-provider"
// In your root layout.tsx:
<ThemeProvider>
{children}
</ThemeProvider>
// Powered by next-themes.
// Supports "light", "dark", and "system".API Reference
| Prop | Type | Required | Description |
|---|---|---|---|
children | ReactNode | yes | App content. |
Source
src/components/shared/theme-provider.tsx