@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.
30 lines (24 loc) • 875 B
TypeScript
// @flow
// 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";
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 onOpen?: Common.Callback;
readonly onClose?: Common.Callback;
}
declare class Popover extends React.Component<Props> {}
export { Popover, Popover as default };