UNPKG

545 BTypeScriptView Raw
1import * as React from 'react';
2
3export interface ApplyThemeProps {
4 /**
5 * set theme variables to override the defaults
6 */
7 theme?: Object;
8 /**
9 * accepts only one child (children must be wrapped in a single component/element)
10 */
11 children?: React.ReactNode;
12 /**
13 * Prevent overriding this theme via a child ApplyTheme component or theme props
14 */
15 immutable?: boolean;
16}
17
18export class ApplyTheme extends React.Component<ApplyThemeProps, any> {
19 render(): JSX.Element;
20
21}
22