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.

34 lines (30 loc) 939 B
// @flow /* DOCUMENTATION: https://orbit.kiwi/components/inputgroup/ */ import type { Globals, Translation } from "../common/common.js.flow"; import type { spaceAfter } from "../common/getSpacingToken/index"; export type Props = {| ...Globals, ...spaceAfter, +label?: Translation, +flex?: string | Array<string>, +size?: "small" | "normal", +help?: React$Node, +children: React$Node, +error?: React$Node, +onChange?: ( ev: SyntheticInputEvent<HTMLInputElement> | SyntheticInputEvent<HTMLSelectElement>, ) => void | Promise<any>, +onFocus?: ( ev: SyntheticInputEvent<HTMLInputElement> | SyntheticInputEvent<HTMLSelectElement>, ) => void | Promise<any>, +onBlur?: ( ev: SyntheticInputEvent<HTMLInputElement> | SyntheticInputEvent<HTMLSelectElement>, ) => void | Promise<any>, |}; export type State = {| active: boolean, filled: boolean, |}; declare export default React$ComponentType<Props>;