@up-group-ui/react-controls
Version:
Up shared react controls
20 lines (19 loc) • 573 B
TypeScript
import React from 'react';
import { ThemeInterface } from './types';
import * as PropTypes from 'prop-types';
export interface ThemeProviderProps {
theme?: ThemeInterface;
}
export declare class ThemeProvider extends React.Component<React.PropsWithChildren<ThemeProviderProps>> {
static childContextTypes: {
theme: PropTypes.Requireable<object>;
};
static defaultProps: {
theme: ThemeInterface;
};
constructor(props: any, context: any);
getChildContext(): {
theme: ThemeInterface;
};
render(): React.ReactNode;
}