UNPKG

themesx

Version:
15 lines (14 loc) 421 B
import * as React from 'react'; type Theme = 'light' | 'dark' | 'system'; type ThemeContextType = { theme: Theme; setTheme: (theme: Theme) => void; }; export interface ThemeProviderProps { children: React.ReactNode; enableSystemTheme?: boolean; defaultTheme?: Theme; } export declare const ThemeProvider: React.FC<ThemeProviderProps>; export declare const useTheme: () => ThemeContextType; export {};