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) 812 B
import React from 'react'; import { IndexableObjectType } from './types'; interface ISelectProps { name: string; component?: React.ComponentType<any>; style?: { [key: string]: string; }; } /** * Component to produce a select (drop down) form element, either with * a standard select 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 select tag. * @returns {JSX.Element} JSX.Element */ export declare const Select: React.FunctionComponent<ISelectProps & IndexableObjectType & React.ComponentProps<'select'>>; export {};