UNPKG

semantic-ui-react

Version:
30 lines (21 loc) 749 B
import * as React from 'react'; export interface TextAreaProps { [key: string]: any; /** An element type to render as (string or function). */ as?: any; /** Indicates whether height of the textarea fits the content or not. */ autoHeight?: boolean; /** * Called on change. * @param {SyntheticEvent} event - The React SyntheticEvent object * @param {object} data - All props and the event value. */ onChange?: (event: React.FormEvent<HTMLTextAreaElement>, data: TextAreaOnChangeData) => void; /** The value of the textarea. */ value?: string; } export interface TextAreaOnChangeData extends TextAreaProps { value?: string; } declare const TextArea: React.ComponentClass<TextAreaProps>; export default TextArea;