next-react-theme
Version:
A flexible theme provider for Next.js and react applications
23 lines (18 loc) • 621 B
text/typescript
import * as react_jsx_runtime from 'react/jsx-runtime';
import { ReactNode } from 'react';
interface ThemeContextType {
theme: string;
setTheme: (newTheme: string) => void;
color: string ;
setColor: (newColor: string) => void;
colors: string[];
}
interface ThemeProviderType {
children: ReactNode;
colorScheme?: boolean;
colors?: string[];
disableTransition?: boolean;
}
declare const ThemeProvider: ({ children, colorScheme, colors, disableTransition }: ThemeProviderType) => react_jsx_runtime.JSX.Element | null;
declare const useTheme: () => ThemeContextType;
export { ThemeProvider, useTheme };