@wix/design-system
Version:
@wix/design-system
9 lines • 742 B
TypeScript
import type { PopoverNextProps } from '../PopoverNext.types';
import { PopoverNextContextValue } from './usePopoverNextContext';
export type UsePopoverProps = Omit<PopoverNextProps, 'children'> & {
rootRef: React.RefObject<HTMLDivElement> | null;
};
type UsePopoverReturn = Omit<PopoverNextContextValue, 'rootPortal' | 'flip' | 'placement'>;
export declare function usePopover({ dataHook, open, onOpenChange, focusManagerEnabled, appendTo, dynamicWidth, zIndex, width, minWidth, maxWidth, excludeClass, moveBy, flip: shouldFlip, placement, fixed, rootRef, showDelay, hideDelay, timeout: duration, skin, transitionSettings, onClickOutside, overlay, }: UsePopoverProps): UsePopoverReturn;
export {};
//# sourceMappingURL=usePopover.d.ts.map