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.

36 lines (32 loc) 1.11 kB
// @flow /* DOCUMENTATION: https://orbit.kiwi/components/inputgroup/ */ import * as React from "react"; import type { Globals, Translation } from "../common/common.js.flow"; import type { spaceAfter } from "../common/getSpacingToken/index.js.flow"; export type Props = {| ...Globals, ...spaceAfter, +label?: Translation, +flex?: string | string[], +size?: "small" | "normal", +help?: React.Node, +children: React.Node, +helpClosable?: boolean, +error?: React.Node, +disabled?: boolean, +onBlurGroup?: ( ev: SyntheticInputEvent<HTMLInputElement> | SyntheticInputEvent<HTMLSelectElement>, ) => void | Promise<any>, +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>, |}; declare export default React.AbstractComponent<Props, HTMLDivElement>;