Download src/components/theme-provider.tsx from web-zero/ui: direct link, hf CLI and curl.
- Browser
- Download file 381 Bytes
-
https://huggingface.co/spaces/web-zero/ui/resolve/main/src/components/theme-provider.tsx
- Command line
-
hf download hf://spaces/web-zero/ui/src/components/theme-provider.tsx
-
curl -L -o theme-provider.tsx https://huggingface.co/spaces/web-zero/ui/resolve/main/src/components/theme-provider.tsx
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> | |
| ); | |
| } | |