2.2.0 • Published 4 years ago

@webiny/app-forms v2.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

@webiny/app-forms

npm.io npm.io code style: prettier PRs Welcome

An app for creating forms that can be embedded into pages created with Webiny Page Builder.

Use together with @webiny/api-forms package.

Install

npm install --save @webiny/app-forms

Or if you prefer yarn:

yarn add @webiny/app-forms

Setup

To setup, you must register a set of plugins. For more information on plugins, please visit Webiny documentation.

Admin

import { registerPlugins } from "@webiny/plugins";
import formsPlugins from "@webiny/app-forms/admin/plugins";
import formsCmsPlugins from "@webiny/app-forms/page-builder/admin/plugins";

registerPlugins(formsPlugins);

Note: the formsCmsPlugins contains plugins for the Page Builder, which will enable you to embed forms in your pages.

Site

import { registerPlugins } from "@webiny/plugins";
import formsSitePlugins from "@webiny/app-forms/site/plugins";
import formsCmsPlugins from "@webiny/app-forms/page-builder/site/plugins";

registerPlugins(formsPlugins);