@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"
35 lines (29 loc) • 983 B
Flow
// @flow
import type { Globals } from "../common/common.js.flow";
export type Props = {|
+size?: "small" | "normal",
+type?: "text" | "number" | "email" | "password",
+name?: string,
+label?: string,
+inlineLabel?: boolean,
+value?: string,
+placeholder?: string,
+prefix?: React$Node,
+suffix?: React$Node,
+help?: React$Node,
+error?: React$Node,
+disabled?: boolean,
+maxValue?: number,
+minValue?: number,
+maxLength?: number,
+minLength?: number,
required?: boolean,
+onChange?: (ev: SyntheticInputEvent<HTMLInputElement>) => void | Promise<any>,
+onFocus?: (ev: SyntheticInputEvent<HTMLInputElement>) => void | Promise<any>,
+onBlur?: (ev: SyntheticInputEvent<HTMLInputElement>) => void | Promise<any>,
...Globals,
|};
declare export var FakeInput: React$ComponentType<>;
declare export var Input: React$ComponentType<>;
declare export var InputContainer: React$ComponentType<>;
declare export default React$ComponentType<Props>;