@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.
25 lines (20 loc) • 818 B
Flow
// @flow
import * as React from "react";
import type { SharedProps } from "..";
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>,
+selected?: boolean,
|};
export type StepperStatelessType = React.ComponentType<StateLessProps>;
declare export default StepperStatelessType;