UNPKG

926 BTypeScriptView Raw
1import * as React from 'react';
2import { ICustomizerProps } from './Customizer.types';
3/**
4 * The Customizer component allows for default props to be mixed into components which
5 * are decorated with the customizable() decorator, or use the styled HOC. This enables
6 * injection scenarios like:
7 *
8 * 1. render svg icons instead of the icon font within all buttons
9 * 2. inject a custom theme object into a component
10 *
11 * Props are provided via the settings prop which should be one of the following:
12 * - A json map which contains 1 or more name/value pairs representing injectable props.
13 * - A function that receives the current settings and returns the new ones that apply to the scope
14 *
15 * @public
16 */
17export declare class Customizer extends React.Component<ICustomizerProps> {
18 componentDidMount(): void;
19 componentWillUnmount(): void;
20 render(): React.ReactElement<{}>;
21 private _onCustomizationChange;
22}