@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) • 645 B
Flow
// @flow
import * as React from "react";
import type { Globals } from "../common/common.js.flow";
type Image = {|
+original: string,
+placeholder?: string,
+name: string,
+code: string,
|};
type ImageCustom = {|
+name: string,
+src: string,
|};
export type Props = {|
...Globals,
+actions?: React.Node,
+children?: React.Node,
+label?: React.Node,
+title?: React.Node,
+subTitle?: React.Node,
+image: Image | ImageCustom,
+height?: string,
+width?: string,
+href?: string,
+external?: boolean,
+tabIndex?: string | number,
+onClick?: () => void,
|};
declare export default React.ComponentType<Props>;