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.

25 lines (20 loc) 834 B
// @flow import * as React from "react"; import type { SharedProps } from ".."; 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>;