@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.
37 lines (33 loc) • 996 B
Flow
// @flow
/*
DOCUMENTATION: https://orbit.kiwi/components/inputstepper/
*/
import type { Globals, Ref, Translation } from "../common/common.js.flow";
import type { Size } from "../InputField/index";
import type { spaceAfter } from "../common/getSpacingToken/index";
export type SharedProps = {|
...Globals,
...Ref,
...spaceAfter,
+size?: Size,
+label?: Translation,
+step?: number,
+help?: React$Node,
+error?: React$Node,
+name?: string,
+disabled?: boolean,
+maxValue?: number,
+minValue?: number,
+required?: boolean,
tabIndex?: string,
+titleIncrement?: string | (any => string),
+titleDecrement?: string | (any => string),
+onFocus?: (ev: SyntheticInputEvent<HTMLInputElement>) => void | Promise<any>,
+onBlur?: (ev: SyntheticInputEvent<HTMLInputElement>) => void | Promise<any>,
|};
export type Props = {|
...SharedProps,
+defaultValue?: number,
+onChange?: number => void | Promise<any>,
|};
declare export default React$ComponentType<Props>;