Skip to content

Example repository for building FAIMS3 form field plugins

Notifications You must be signed in to change notification settings

FAIMS/faims3-plugin-template

Repository files navigation

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

About

Example repository for building FAIMS3 form field plugins

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published