@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.
32 lines (27 loc) • 1.09 kB
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";
type Resize = "vertical" | "none";
export interface Props extends Common.Globals, Common.SpaceAfter, Common.DataAttrs {
readonly ref?: React.ForwardedRef<HTMLTextAreaElement>;
readonly name?: string;
readonly rows?: number;
readonly readOnly?: boolean;
readonly required?: boolean;
readonly label?: Common.Translation;
readonly defaultValue?: string;
readonly value?: string;
readonly fullHeight?: boolean;
readonly placeholder?: Common.Translation;
readonly help?: React.ReactNode;
readonly error?: React.ReactNode;
readonly resize?: Resize;
readonly disabled?: boolean;
readonly helpClosable?: boolean;
readonly maxLength?: number;
readonly tabIndex?: string | number;
readonly onChange?: React.ChangeEventHandler<HTMLTextAreaElement>;
readonly onFocus?: React.FocusEventHandler<HTMLTextAreaElement>;
readonly onBlur?: React.FocusEventHandler<HTMLTextAreaElement>;
}