office-ui-fabric-react
Version: 
Reusable React components for building experiences for Office 365.
31 lines (30 loc) • 1.04 kB
TypeScript
import * as React from 'react';
import { Popup } from './Popup';
export interface IPopupProps extends React.HTMLProps<Popup> {
    /**
     * Aria role for popup
     */
    role?: string;
    /**
     *  Defines the element id referencing the element containing label text for popup.
     */
    ariaLabelledBy?: string;
    /**
      * Defines the element id referencing the element containing the description for the popup.
      */
    ariaDescribedBy?: string;
    /**
     * A callback function for when the popup is dismissed from the close button or light dismiss. If provided, will
     * handle escape keypresses and call this. The event will be stopped/canceled.
     */
    onDismiss?: (ev?: React.MouseEvent<HTMLElement>) => any;
    /**
     *  Optional class name for the root popup div.
     */
    className?: string;
    /**
     * If true, the unmounting of this component will cause focus to be restored to the element that had focus when first mounted.
     * @default true
     */
    shouldRestoreFocus?: boolean;
}