mirror of
https://bitbucket.org/Mattrixwv/mattrixwvreactcomponents.git
synced 2025-12-07 14:13:58 -05:00
19 lines
368 B
TypeScript
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;
|
|
}
|