azure-devops-ui
Version:
React components for building web UI in Azure DevOps
27 lines (26 loc) • 844 B
TypeScript
/**
* IPortalProperties are used to initialize an Portal component. They allow you to control
* where the portal is hosted.
*/
export interface IPortalProps {
/**
* Optional className to add to the root of the portal.
*/
className?: string;
/**
* Optional className to add to the portal host.
*/
parentClassName?: string;
/**
* Optional selector for the parentElement that will contain the portal tree.
*/
portalSelector?: string;
/**
* Optional parentElement that will contain the portal tree.
*/
portalElement?: HTMLElement;
/**
* By default, the focus is returned to the previously active element when the portal is unmounted. Set this flag to true to bypass this action.
*/
bypassActiveElementFocusOnUnmount?: boolean;
}