@atlaskit/popup
Version:
A popup displays brief content in an overlay.
16 lines (15 loc) • 653 B
TypeScript
/**
* **usePopupAppearance()**
*
* Abstracts away calculating the appearance for a popup including if it should
* be portalled or not, this is done to ensure that if the popup needs to render
* as a modal that it is also forcibly portalled. If it's not portalled when rendering
* as a modal it will appear below the top bar.
*/
export declare function usePopupAppearance({ appearance: _appearance, shouldRenderToParent: _shouldRenderToParent, }: {
appearance: 'default' | 'UNSAFE_modal-below-sm';
shouldRenderToParent?: boolean;
}): {
appearance: 'default' | 'UNSAFE_modal-below-sm';
shouldRenderToParent: boolean | undefined;
};