@uifabric/utilities
Version:
Fluent UI React utilities for building components.
23 lines (22 loc) • 926 B
TypeScript
import * as React from 'react';
import { ICustomizerProps } from './Customizer.types';
/**
* The Customizer component allows for default props to be mixed into components which
* are decorated with the customizable() decorator, or use the styled HOC. This enables
* injection scenarios like:
*
* 1. render svg icons instead of the icon font within all buttons
* 2. inject a custom theme object into a component
*
* Props are provided via the settings prop which should be one of the following:
* - A json map which contains 1 or more name/value pairs representing injectable props.
* - A function that receives the current settings and returns the new ones that apply to the scope
*
* @public
*/
export declare class Customizer extends React.Component<ICustomizerProps> {
componentDidMount(): void;
componentWillUnmount(): void;
render(): React.ReactElement<{}>;
private _onCustomizationChange;
}