@overlayed-app/contributes-form

1.2.1 • Public • Published

contributes-form

Build Status Coverage Status

Form for contributes providers ✔️

Why

We need a configuration component that works with contributes settings. This is that component.

How

npm i @overlayed-app/contributes-form

Then in code (if jsx):

const ContributesForm = require('@overlayed-app/contributes-form')

// use it as a react component
<ContributesForm sources={['test/package.json']} />

or (if tsx):

import ContributesForm from '@overlayed-app/contributes-form'

// use it as a react component
<ContributesForm sources={['test/package.json']} />

API

The default module exports the react component. The options are as follows:

  • sources - an array of paths to json files containing contributes objects
  • rawSources - an optional array of contributes object literals
  • data - an optional data object, containing existing setting data
  • completed - an optional callback that's given the changed setting data

Uses mozilla-services/react-jsonschema-form under the hood.

Contributing

  • To build npm run build.
  • To publish npm run publish.
  • To test npm test.

Authors

Ben Greenier - Initial work - bengreenier

License

Contributes is licensed under the MIT License - Click here for details

Readme

Keywords

Package Sidebar

Install

npm i @overlayed-app/contributes-form

Weekly Downloads

1

Version

1.2.1

License

MIT

Unpacked Size

9.36 kB

Total Files

6

Last publish

Collaborators

  • bengreenier