1.0.0 • Published 1 year ago

@amr-test/react-shared-component v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
1 year ago

react-shared-component

Made with create-react-library

NPM JavaScript Style Guide

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:

License

MIT © amirsaga

1.0.0

1 year ago