@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.
26 lines (21 loc) • 788 B
TypeScript
// Type definitions for @kiwicom/orbit-components
// Project: http://github.com/kiwicom/orbit
import type * as React from "react";
import type * as Common from "../common/types";
export interface Option {
readonly label: React.ReactNode;
readonly value: string | number;
readonly disabled?: boolean;
readonly name?: string;
readonly defaultChecked?: boolean;
}
export interface Props extends Common.Globals, Common.SpaceAfter {
readonly onChange: (ev: React.ChangeEvent<HTMLInputElement>) => void;
readonly onFocus?: (ev: React.FocusEvent<HTMLInputElement>) => void;
readonly showTooltip?: boolean;
readonly error?: React.ReactNode;
readonly maxWidth?: string;
readonly help?: React.ReactNode;
readonly label?: React.ReactNode;
readonly options: Option[];
}