Module exposing: ThemeProvider
// Source: https://github.com/omeralpi/shadcn-phone-input | License: MIT | Copyright 2024 Omer Alpi
// Provided via justclaw.it.com; keep this notice with the code.
"use client";
import * as React from "react";
import { ThemeProvider as NextThemesProvider } from "next-themes";
import { type ThemeProviderProps } from "next-themes/dist/types";
export function ThemeProvider({ children, ...props }: ThemeProviderProps) {
return <NextThemesProvider {...props}>{children}</NextThemesProvider>;
}
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key