@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.
24 lines (20 loc) • 561 B
Flow
// @flow
/*
DOCUMENTATION: https://orbit.kiwi/components/listchoice/
*/
import * as React from "react";
import type { Globals, Translation } from "../common/common.js.flow";
export type Props = {|
...Globals,
+title: Translation,
+description?: Translation,
+selectable?: boolean,
+selected?: boolean,
+disabled?: boolean,
+icon?: React.Node,
+action?: React.Node,
+onClick?: (
e: SyntheticEvent<HTMLDivElement> | SyntheticKeyboardEvent<HTMLElement>,
) => void | Promise<any>,
|};
declare export default React.ComponentType<Props>;