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