UNPKG

watercolor-ui

Version:

A modern minimalist cross-framework component library

14 lines 498 B
import { default as React } from 'react'; import { themes } from './utils/theme'; type _ColorTheme = keyof typeof themes; interface ThemeContextValue { color: _ColorTheme; setColor: (c: _ColorTheme) => void; dark: boolean; /** 与 Vue 端保持一致,切换暗黑模式 */ toggleDark: () => void; } export declare const ThemeProvider: React.FC<React.PropsWithChildren>; export declare function useTheme(): ThemeContextValue; export {}; //# sourceMappingURL=ThemeReact.d.ts.map