UNPKG

@cfxjs/react-ui

Version:

Modern and minimalist React UI library.

16 lines (15 loc) 651 B
import React, { PropsWithChildren } from 'react'; import { CfxUIThemes } from '../themes/index'; import { DeepPartial } from '../../utils/types'; declare type PartialTheme = DeepPartial<CfxUIThemes>; export declare type ThemeParam = PartialTheme | ((theme: PartialTheme) => PartialTheme) | undefined; export interface Props { theme?: ThemeParam; } export interface MergeObject { [key: string]: any; } export declare const isObject: (target: any) => boolean; export declare const deepMergeObject: <T extends MergeObject>(source: T, target: T) => T; declare const ThemeProvider: React.FC<PropsWithChildren<Props>>; export default ThemeProvider;