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.

21 lines (16 loc) 765 B
// Type definitions for @kiwicom/orbit-components // Project: http://github.com/kiwicom/orbit import type * as React from "react"; import type * as Common from "../../common/types"; import type { SharedProps } from "../types"; type InputEvent = Common.Event<React.KeyboardEvent<HTMLInputElement>>; export interface Props extends SharedProps { readonly value?: number | string; readonly disabledIncrement?: boolean; readonly disabledDecrement?: boolean; readonly onKeyDown?: InputEvent; readonly onDecrement?: Common.Event<React.SyntheticEvent<HTMLButtonElement | HTMLAnchorElement>>; readonly onIncrement?: Common.Event<React.SyntheticEvent<HTMLButtonElement | HTMLAnchorElement>>; readonly onChange?: InputEvent; readonly selected?: boolean; }