Files
MattrixwvReactComponents/lib/types/ThemeTypes.ts

19 lines
368 B
TypeScript

export type Theme = "dark" | "light" | "system";
export interface ThemeProviderProps {
defaultTheme?: Theme;
storageKey?: string;
children: React.ReactNode;
}
export interface ThemeProviderState {
theme: Theme;
setTheme: (theme: Theme) => void;
}
export interface ThemeProviderProps {
children: React.ReactNode;
defaultTheme?: Theme;
storageKey?: string;
}