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