@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.
21 lines (17 loc) • 711 B
Flow
// @flow
import type { SharedProps } from "../index";
export type StateLessProps = {|
...SharedProps,
+value: number | string | (() => string),
+disabledIncrement?: boolean,
+disabledDecrement?: boolean,
+onKeyDown?: (ev: SyntheticKeyboardEvent<HTMLInputElement>) => void | Promise<any>,
+onDecrement?: (
ev: SyntheticEvent<HTMLButtonElement> | SyntheticKeyboardEvent<HTMLButtonElement>,
) => void | Promise<any>,
+onIncrement?: (
ev: SyntheticEvent<HTMLButtonElement> | SyntheticKeyboardEvent<HTMLButtonElement>,
) => void | Promise<any>,
+onChange?: (SyntheticInputEvent<HTMLInputElement>) => void | Promise<any>,
|};
declare export default React$ComponentType<StateLessProps>;