@codecraftkit/formfield
v1.1.57
Published
Made with create-react-library
Downloads
147
Readme
formfield
Made with create-react-library
Install
npm install --save @codecraftkit/formfield
Usage
import React, { Component } from 'react'
import FormField from "@codecraftkit/formfield";
import {Form, Formik} from "formik"
const ExampleComponent = () => {
return (
<Formik
initialValues={{subject:""}}
onSubmit={onSubmit}>
{() => (
<Form>
<Grid gap={4}>
<FormField
type='text'
required
name='subject'
label='Password'/>
<Button
type='submit'
size='xs'
variantColor='green'
justifySelf='flex-end'>
Submit
</Button>
</Grid>
</Form>
)}
</Formik>
))
}
License
MIT © CodeCraft