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 1.29 kB
import type * as React from "react"; import type * as Common from "../common/types"; interface Option { readonly key?: string; readonly value: string | number; readonly label?: string; readonly disabled?: boolean; } export interface Props extends Common.Globals<HTMLSelectElement>, Common.SpaceAfter, Common.DataAttrs { readonly id?: string; readonly required?: boolean; readonly label?: Common.Translation; readonly placeholder?: Common.Translation; readonly value?: string | number; readonly disabled?: boolean; readonly name?: string; readonly width?: string; readonly error?: React.ReactNode; readonly help?: React.ReactNode; readonly tabIndex?: string | number; readonly onChange?: React.ChangeEventHandler<HTMLSelectElement>; readonly onFocus?: React.FocusEventHandler<HTMLSelectElement>; readonly onBlur?: React.FocusEventHandler<HTMLSelectElement>; readonly options: Option[]; readonly prefix?: React.ReactNode; readonly insideInputGroup?: boolean; readonly inlineLabel?: boolean; readonly customValueText?: Common.Translation; readonly ariaLabel?: string; readonly ariaLabelledby?: string; readonly ariaDescribedby?: string; } export {}; //# sourceMappingURL=types.d.ts.map