@kiwicom/orbit-components
Version:
Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com’s products.
26 lines (25 loc) • 1.03 kB
TypeScript
import * as React from "react";
import type { Placement } from "@popperjs/core/lib/enums";
import type * as Common from "../../common/types";
import type { Offset } from "../types";
export interface Props extends Common.Globals {
children: React.ReactNode;
closeText?: React.ReactNode;
referenceElement: HTMLElement | null;
placement: Placement;
width?: string;
maxHeight?: string;
noFlip?: boolean;
allowOverflow?: boolean;
noPadding?: boolean;
overlapped?: boolean;
shown: boolean;
fixed?: boolean;
labelClose?: React.ReactNode;
lockScrolling?: boolean;
actions?: React.ReactNode;
offset?: Offset;
onClose: (ev?: MouseEvent | React.SyntheticEvent<HTMLElement>) => void;
}
declare const PopoverContentWrapper: ({ children, onClose, labelClose, width, maxHeight, noFlip, offset, referenceElement, dataTest, id, placement, noPadding, overlapped, shown, fixed, allowOverflow, lockScrolling, actions, }: Props) => JSX.Element;
export default PopoverContentWrapper;