UNPKG

@atlaskit/popup

Version:

A popup displays brief content in an overlay.

21 lines (20 loc) • 1.26 kB
/** * @jsxRuntime classic * @jsx jsx */ import { type ReactNode } from 'react'; import { type ContentProps, type PopupProps } from '../types'; /** * Top-layer implementation of the compositional PopupContent. * * Reads isOpen, id, triggerRef from the legacy compositional Popup context, * then renders via @atlaskit/top-layer's Popup compound. * * Gated behind the `platform-dst-top-layer` feature flag. */ export declare function PopupContentTopLayer({ xcss, children, offset: offsetProp, onClose, testId, placement, fallbackPlacements: _fallbackPlacements, popupComponent: PopupContainer, autoFocus, shouldFitContainer, shouldFitViewport, role, label, titleId, isOpen, id: providedId, zIndex: _zIndex, shouldRenderToParent: _shouldRenderToParent, strategy: _strategy, boundary: _boundary, rootBoundary: _rootBoundary, shouldUseCaptureOnOutsideClick: _shouldUseCaptureOnOutsideClick, shouldDisableFocusLock: _shouldDisableFocusLock, shouldFlip: _shouldFlip, appearance: _appearance, shouldDisableGpuAcceleration: _shouldDisableGpuAcceleration, }: Omit<PopupProps, 'content' | 'trigger'> & { children: (props: ContentProps) => ReactNode; shouldDisableGpuAcceleration?: boolean; isOpen: boolean; id: string | undefined; }): ReactNode;