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.

37 lines (31 loc) 780 B
// @flow import * as React from "react"; import type { Placement } from "@popperjs/core/lib/enums"; import type { Globals } from "../common/common.js.flow"; export type Position = {| overlapped: boolean, |}; export type Offset = {| top: number, left: number, |}; export type Props = {| ...Globals, +children: React.Node, +content: React.Node, +placement?: Placement, +opened?: boolean, +width?: string, +allowOverflow?: boolean, +noFlip?: boolean, +noPadding?: boolean, +overlapped?: boolean, +fixed?: boolean, +actions?: React.Node, +offset?: Offset, +lockScrolling?: boolean, +renderInPortal?: boolean, +onOpen?: () => void | Promise<any>, +onClose?: () => void | Promise<any>, |}; declare export default React.ComponentType<Props>;