@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 (30 loc) • 1.02 kB
TypeScript
// Type definitions for @kiwicom/orbit-components
// Project: http://github.com/kiwicom/orbit
import * as React from "react";
import * as Common from "../common/common";
declare module "@kiwicom/orbit-components/lib/Popover";
type Position = "top" | "bottom";
type Aligns = "start" | "end" | "center";
type Offset = {
top?: number;
left?: number;
};
export interface Props extends Common.Global {
readonly children: React.ReactNode;
readonly content: React.ReactNode;
readonly preferredPosition?: Position;
readonly preferredAlign?: Aligns;
readonly opened?: boolean;
readonly width?: string;
readonly noPadding?: 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 class Popover extends React.Component<Props> {}
export { Popover, Popover as default };