@gpa-gemstone/react-forms
Version:
React Form modules for gpa webapps
29 lines (28 loc) • 779 B
TypeScript
import { Gemstone } from '@gpa-gemstone/application-typings';
interface IProps<T> extends Gemstone.TSX.Interfaces.IBaseFormProps<T> {
/**
* Number of rows for the textarea
* @type {number}
*/
Rows: number;
/**
* Function to determine the validity of a field
* @param field - Field of the record to check
* @returns {boolean}
*/
Valid: (field: keyof T) => boolean;
/**
* Feedback message to show when input is invalid
* @type {string}
* @optional
*/
Feedback?: string;
/**
* Help message or element to display
* @type {string | JSX.Element}
* @optional
*/
Help?: string | JSX.Element;
}
export default function TextArea<T>(props: IProps<T>): JSX.Element;
export {};