@kiwicom/orbit-components
Version:
<div align="center"> <a href="https://orbit.kiwi" target="_blank"> <img alt="orbit-components" src="https://orbit.kiwi/wp-content/uploads/2018/08/orbit-components.png" srcset="https://orbit.kiwi/wp-content/uploads/2018/08/orbit-components@2x.png 2x"
31 lines (25 loc) • 792 B
Flow
// @flow
import type { Globals } from "../common/common.js.flow";
type Option = {|
+value: string | number,
+label?: string,
+disabled?: boolean,
|};
type Size = "small" | "normal";
export type Props = {|
+size?: Size,
+label?: string,
+placeholder?: string,
+value?: string | number,
+disabled?: boolean,
+error?: React$Node,
+help?: React$Node,
+onChange?: (ev: SyntheticInputEvent<HTMLSelectElement>) => void | Promise<any>,
+onFocus?: (ev: SyntheticInputEvent<HTMLSelectElement>) => void | Promise<any>,
+onBlur?: (ev: SyntheticInputEvent<HTMLSelectElement>) => void | Promise<any>,
+options: Option[],
+prefix?: React$Node,
...Globals,
|};
declare export var SelectContainer: React$ComponentType<>;
declare export default React$ComponentType<Props>;