react-shared-component
Made with create-react-library
Install
npm install --save react-shared-component
Usage
import React, { Component } from 'react'
import { FormikControl, Form, Formik } from 'react-shared-component'
class Example extends Component {
render() {
return (
<Formik>
{({ values }) => {
return (
<Form>
<FormikControl
control='select'
label='Any State'
name='state'
/>
<FormikControl
control='numeric'
label='Property Value'
name='property_value'
placeholder='Enter property value'
/>
<FormikControl
control='radio'
label='Property Type'
name='property_type'
/>
</Form>
)
}}
</Formik>
)
}
}
References:
- https://github.com/transitive-bullshit/create-react-library
- https://soshace.com/how-to-careate-a-react-ccomponent-library-using-a-modal-example/
License
MIT © amirsaga