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.

41 lines (34 loc) 1.21 kB
// Type definitions for @kiwicom/orbit-components // Project: http://github.com/kiwicom/orbit import * as React from "react"; import * as Common from "../common/common"; // InputEvent type Event = Common.Event<React.SyntheticEvent<HTMLSelectElement>>; interface Option { readonly value: string | number; readonly label?: string; readonly disabled?: boolean; } export interface Props extends Common.Global, Common.Ref, Common.SpaceAfter, Common.DataAttrs { readonly id?: string; readonly required?: boolean; readonly size?: Common.InputSize; readonly label?: Common.Translation; readonly placeholder?: Common.Translation; readonly value?: string | number; readonly disabled?: boolean; readonly name?: string; readonly error?: React.ReactNode; readonly help?: React.ReactNode; readonly tabIndex?: string | number; readonly onChange?: Event; readonly onFocus?: Event; readonly onBlur?: Event; readonly options: Option[]; readonly prefix?: React.ReactNode; readonly readOnly?: boolean; readonly insideInputGroup?: boolean; readonly customValueText?: Common.Translation; } declare const Select: React.FunctionComponent<Props>; export { Select, Select as default };