@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.
32 lines (27 loc) • 718 B
Flow
// @flow
/*
DOCUMENTATION: https://orbit.kiwi/components/tile/
*/
import * as React from "react";
import type { Globals } from "../common/common.js.flow";
export type TileOnClick = (
e: SyntheticEvent<HTMLDivElement> | SyntheticKeyboardEvent<HTMLElement>,
) => void | Promise<any>;
export type Props = {|
+as?: string,
+title?: React.Node,
+description?: React.Node,
+icon?: React.Node,
+header?: React.Node,
+children?: React.Node,
+external?: boolean,
+href?: string,
+onClick?: TileOnClick,
+expandable?: boolean,
+initialExpanded?: boolean,
+noPadding?: boolean,
+htmlTitle?: string,
+noHeaderIcon?: boolean,
...Globals,
|};
declare export default React.ComponentType<Props>;