1.0.1 • Published 3 years ago

react-shared-component v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years 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.1

3 years ago

1.0.0

3 years ago