mirror of
https://bitbucket.org/Mattrixwv/mattrixwvreactcomponents.git
synced 2025-12-06 21:53:57 -05:00
Most simple components created
This commit is contained in:
18
lib/types/Theme.d.ts
vendored
Normal file
18
lib/types/Theme.d.ts
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user