UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

31 lines (30 loc) 1.06 kB
/// <reference types="react" /> import { BaseComponent } from '../../Utilities'; import { IPersonaProps } from './Persona.types'; /** * Persona with no default styles. * [Use the `styles` API to add your own styles.](https://github.com/OfficeDev/office-ui-fabric-react/wiki/Styling) */ export declare class PersonaBase extends BaseComponent<IPersonaProps, {}> { static defaultProps: IPersonaProps; constructor(props: IPersonaProps); render(): JSX.Element; /** * Renders various types of Text (primaryText, secondaryText, etc) * based on the classNames passed * @param classNames * @param renderFunction * @param defaultRenderFunction */ private _renderElement(classNames, renderFunction, defaultRenderFunction); /** * Deprecation helper for getting text. */ private _getText(); /** * using closure to wrap the default render behavior * to make it independent of the type of text passed * @param text */ private _onRenderText(text); }