dgz-ui-shared
Version:
Custom ui library using React.js, Shadcn/ui, TailwindCSS, Typescript, dgz-ui library
18 lines • 560 B
TypeScript
import { ThemeMode } from '../enums';
/**
* State shape for the ThemeProvider context.
*/
type ThemeProviderState = {
/** Current active theme mode. */
theme: ThemeMode;
/** Function to update the theme. */
setTheme: (theme: ThemeMode) => void;
};
/**
* React context holding the current theme and a setter to update it.
*
* Use together with useTheme() hook. Defaults to system theme.
*/
export declare const ThemeProviderContext: import('react').Context<ThemeProviderState>;
export {};
//# sourceMappingURL=ThemeProviderContext.d.ts.map