Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 1.14 KB

README.md

File metadata and controls

39 lines (27 loc) · 1.14 KB

faims3-xyzzy-input

Template project for new input widget plugins for FAIMS3

NPM JavaScript Style Guide

This repository contains a simple form field component structured as a plugin for FAIMS3. It is intended to be the basis for future plugins.

Replace 'XYZZY' or 'xyzzy' everywhere with the name of your plugin field.

Install

npm install --save @faims-project/faims3-map-input

Usage

import React, { Component } from 'react'
import { Field, Form, Formik } from 'formik';
import XYZZYFormField from '@faims-project/faims3-xyzzy-input'

class Example extends Component {
  render() {
      return <Formik>
                <Form>
                  <Field name="circle" featureType="Circle" component={XYZZYFormField} />
                </Form>
             </Formik>
  }
}

License

Apache2 © stevecassidy