@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.
36 lines (30 loc) • 1.08 kB
TypeScript
// Type definitions for @kiwicom/orbit-components
// Project: http://github.com/kiwicom/orbit
import * as React from "react";
import * as Common from "../common/common";
type Resize = "vertical" | "none";
// InputEvent
type Event = Common.Event<React.SyntheticEvent<HTMLTextAreaElement>>;
interface Props extends Common.Global, Common.Ref, Common.SpaceAfter {
readonly size?: Common.InputSize;
readonly name?: string;
readonly rows?: number;
readonly readOnly?: boolean;
readonly required?: boolean;
readonly label?: Common.Translation;
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?: Event;
readonly onFocus?: Event;
readonly onBlur?: Event;
}
declare const Textarea: React.FunctionComponent<Props>;
export { Textarea, Textarea as default };