UNPKG

react-proforma

Version:

React Proforma helps you build simple to complex web forms with ease in React. -- Simplicity where you want it. Flexibility where you need it.

20 lines (19 loc) 814 B
import React from 'react'; import { IndexableObjectType } from './types'; interface ITextareaProps { name: string; component?: React.ComponentType<any>; style?: { [key: string]: string; }; } /** * Component to produce a textarea form element, either with * a standard textarea tag, or with your own custom component. * * @param {string} name - name of the form element, which MUST be the same string value as the corresponding value in your "initialValues" object. * @param {React.ComponentType=} [component] - Optional custom component to be used instead of a standard textarea tag. * @returns {JSX.Element} JSX.Element */ export declare const Textarea: React.FunctionComponent<ITextareaProps & IndexableObjectType & React.ComponentProps<'textarea'>>; export {};