UNPKG

@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.

23 lines (19 loc) 807 B
// @flow import type { SharedProps } from "../index"; import type { RefType } from "../../common/common.js.flow"; export type StateLessProps = {| ...SharedProps, +value: number | string | (() => string | number), +forwardedRef?: RefType, +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>;