UNPKG

@hirebus/academy

Version:

React component library for academy and learning platforms

14 lines (13 loc) 467 B
type Theme = 'dark' | 'light' | 'system'; type ThemeProviderProps = { children: React.ReactNode; defaultTheme?: Theme; storageKey?: string; }; type ThemeProviderState = { theme: Theme; setTheme: (theme: Theme) => void; }; export declare function ThemeProvider({ children, defaultTheme, storageKey, ...props }: ThemeProviderProps): import("react/jsx-runtime").JSX.Element; export declare const useThemeContext: () => ThemeProviderState; export {};