react-wired-elements
Version:
Wired Elements as React components. TypeScript types included.
41 lines (40 loc) • 1.18 kB
TypeScript
import * as React from 'react';
import { BaseProps } from './types';
export interface WiredTextAreaProps extends BaseProps {
/**
* Placeholder text for the TextArea.
*/
placeholder?: string;
/**
* Disable the TextArea.
* @default false
*/
disabled?: boolean;
/**
* The value of the TextArea.
*/
value?: string;
/**
* Initial number of rows in TextArea.
* @default 3
*/
rows?: number;
/**
* Maximum number of rows in TextArea.
* @default 20
*/
maxRows?: number;
/**
* Event that fires any time the TextArea text is changed.
*/
onChange?(e: React.ChangeEvent<HTMLInputElement>): void;
/**
* Event that fires any time the TextArea is blurred.
*/
onBlur?(e: React.ChangeEvent<HTMLInputElement>): void;
/**
* Event that fires any time the TextArea is focused.
*/
onFocus?(e: React.ChangeEvent<HTMLInputElement>): void;
}
export declare const WiredTextArea: ({ placeholder, disabled, value, rows, maxRows, onChange, onBlur, onFocus, className, style, }: WiredTextAreaProps) => JSX.Element;