react-shared-component

1.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i react-shared-component

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

356 kB

Total Files

7

Last publish

Collaborators

  • amirsaga