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.

44 lines (35 loc) 1.33 kB
// @flow import type { ReactComponentStyled } from "styled-components"; import type { Globals, Ref } from "../common/common.js.flow"; export type Size = "small" | "normal"; export type Props = {| +size?: Size, +type?: "text" | "number" | "email" | "password", +name?: string, +label?: string, +inlineLabel?: boolean, +value?: string | number, +placeholder?: string, +prefix?: React$Node, +suffix?: React$Node, +help?: React$Node, +error?: React$Node, +disabled?: boolean, +maxValue?: number, +minValue?: number, +maxLength?: number, +minLength?: number, required?: boolean, +onChange?: (ev: SyntheticInputEvent<HTMLInputElement>) => void | Promise<any>, +onFocus?: (ev: SyntheticInputEvent<HTMLInputElement>) => void | Promise<any>, +onBlur?: (ev: SyntheticInputEvent<HTMLInputElement>) => void | Promise<any>, +onKeyDown?: (ev: SyntheticKeyboardEvent<HTMLInputElement>) => void | Promise<any>, +onKeyUp?: (ev: SyntheticKeyboardEvent<HTMLInputElement>) => void | Promise<any>, ...Globals, ...Ref, |}; declare export var FakeInput: ReactComponentStyled<any>; declare export var Input: ReactComponentStyled<any>; declare export var Prefix: ReactComponentStyled<any>; declare export var InputContainer: ReactComponentStyled<any>; declare export default React$ComponentType<Props>;