spartan-ui
Version:
React component library that focusses on getting the basics right leaving the design up to you
23 lines (22 loc) • 677 B
TypeScript
import React, { FunctionComponent } from 'react';
import { CommonProps } from '../../types';
export interface TextAreaProps extends CommonProps {
name: string;
id?: string;
cols?: number;
disabled?: boolean;
autocomplete?: boolean;
autofocus?: boolean;
defaultValue?: string;
placeholder?: string;
readonly?: boolean;
required?: boolean;
rows?: number;
spellCheck?: boolean;
value?: string;
wrap?: 'hard' | 'soft' | 'off';
onBlur?: (e: React.FocusEvent) => void;
onChange?: (e: React.ChangeEvent) => void;
}
declare const TextArea: FunctionComponent<TextAreaProps>;
export default TextArea;