@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.
33 lines (28 loc) • 775 B
Flow
// @flow
import type { Globals, Ref, RefType } from "../common/common.js.flow";
import type { Size } from "../InputField/index";
export type Props = {|
...Globals,
...Ref,
+size?: Size,
+label?: string,
+defaultValue?: number,
+step?: number,
+help?: React$Node,
+error?: React$Node,
+name?: string,
+disabled?: boolean,
+maxValue?: number,
+minValue?: number,
+required?: boolean,
+onChange?: number => void | Promise<any>,
+onFocus?: (ev: SyntheticInputEvent<HTMLInputElement>) => void | Promise<any>,
+onBlur?: (ev: SyntheticInputEvent<HTMLInputElement>) => void | Promise<any>,
|};
export type State = {|
value: number,
|};
export type ForwardedRef = {
+forwardedRef: RefType,
};
declare export default React$ComponentType<Props>;