0.9.2 • Published 1 year ago

@bedrockstreaming/form-editor v0.9.2

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

:writing_hand: form-editor

:construction: WIP :construction:

This utility package helps to create and edit your form-builder schemas.

:building_construction: Install

npm install @bedrockstreaming/form-editor

:rocket: Usage

import { FormEditor } from '@bedrockstreaming/form-editor';

// NOTE: Those are optionals
import { schema } from './path_to/schema';
import { dictionary } from './path_to/dictionary';
import { extraValidation } from './path_to/extraValidation';

const SomePage = () => {
  return (
    <div>
      <FormEditor
        schema={schema}
        dictionary={dictionary}
        extraValidation={extraValidation}
      />
    </div>
  );
};

Examples

For real-world usage, see the demo app.

Contributing

Running unit tests

Run nx test form-editor to execute the unit tests via Jest.