@leffot/form-controls
v1.5.0
Published
A library of React components to use with Formik forms.
Downloads
2
Readme
form-controls
Install
npm install --save @leffot/form-controls
Usage
import { Formik, Form } from 'formik'
import { FormRow, TextInput } from '@leffot/form-controls'
function Example() {
return (
<Formik initialValues={{ emailAddress: '' }}>
{() => (
<Form>
<FormRow>
<TextInput
id='emailAddress'
label='Email'
name='emailAddress'
placeholder='[email protected]'
type='email'
/>
</FormRow>
</Form>
)}
</Formik>
)
}
License
MIT © leffot