@kiwicom/orbit-components
Version:
<div align="center"> <a href="https://orbit.kiwi" target="_blank"> <img alt="orbit-components" src="https://orbit.kiwi/wp-content/uploads/2018/08/orbit-components.png" srcset="https://orbit.kiwi/wp-content/uploads/2018/08/orbit-components@2x.png 2x"
31 lines (27 loc) • 904 B
Flow
// @flow
import type { Globals } from "../common/common.js.flow";
import InputField from "../InputField";
import Select from "../Select";
export type Props = {|
+label?: string,
+flex?: string | Array<string>,
+size?: "small" | "normal",
+help?: React$Node,
+children: Array<React$Element<typeof InputField> | React$Element<typeof Select>>,
+error?: React$Node,
+onChange?: (
ev: SyntheticInputEvent<HTMLInputElement> | SyntheticInputEvent<HTMLSelectElement>,
) => void | Promise<any>,
+onFocus?: (
ev: SyntheticInputEvent<HTMLInputElement> | SyntheticInputEvent<HTMLSelectElement>,
) => void | Promise<any>,
+onBlur?: (
ev: SyntheticInputEvent<HTMLInputElement> | SyntheticInputEvent<HTMLSelectElement>,
) => void | Promise<any>,
...Globals,
|};
export type State = {|
active: boolean,
filled: boolean,
|};
declare export default React$ComponentType<Props>;