UNPKG

@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.

36 lines (29 loc) 963 B
// Type definitions for @kiwicom/orbit-components // Project: http://github.com/kiwicom/orbit import { Placement } from "@popperjs/core/lib/enums"; import * as React from "react"; import * as Common from "../common/common"; type Offset = { top?: number; left?: number; }; export interface Props extends Common.Global { readonly children: React.ReactNode; readonly content: React.ReactNode; readonly placement?: Placement; readonly opened?: boolean; readonly width?: string; readonly noPadding?: boolean; readonly allowOverflow?: boolean; readonly noFlip?: boolean; readonly overlapped?: boolean; readonly fixed?: boolean; readonly actions?: React.ReactNode; readonly offset?: Offset; readonly lockScrolling?: boolean; readonly onOpen?: Common.Callback; readonly renderInPortal?: boolean; readonly onClose?: Common.Callback; } declare const Popover: React.FunctionComponent<Props>; export { Popover, Popover as default };