@gulibs/vgrove-ui
Version:
VGrove UI component library built with HeroUI and React
21 lines • 703 B
TypeScript
import React from 'react';
export type ThemeMode = 'light' | 'dark' | 'system';
export type ResolvedTheme = 'light' | 'dark';
export interface ThemeContextType {
theme: ThemeMode;
resolvedTheme: ResolvedTheme;
systemTheme: ResolvedTheme;
setTheme: (theme: ThemeMode) => void;
toggleTheme: () => void;
}
declare const ThemeContext: React.Context<ThemeContextType | null>;
export interface ThemeProviderProps {
children: React.ReactNode;
defaultTheme?: ThemeMode;
storageKey?: string;
attribute?: string;
enableSystem?: boolean;
}
export declare const ThemeProvider: React.FC<ThemeProviderProps>;
export { ThemeContext };
//# sourceMappingURL=ThemeProvider.d.ts.map