Template project for new input widget plugins for FAIMS3
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.
npm install --save @faims-project/faims3-map-input
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>
}
}