nocms-forms
v4.6.1
Published
React forms for NoCMS
Downloads
231
Readme
NoCMS Forms
Forms package for NoCMS written with React. Supports both simple forms or wizards with multiple steps.
Installation
Install nocms-forms from npm and include it in your own React build process (using Browserify, Webpack, etc).
npm i nocms-forms
Basic example
import { Form, Field } from 'nocms-forms';
const storeName = 'example';
const App = () => {
const handleSubmit = (formData, imDone) => {
console.log(formData);
imDone();
};
return (
<Form
store={'basic-example-form'}
onSubmit={handleSubmit}
>
<Field
label="What's your name"
name="name"
/>
</Form>
);
}
Demo & Examples
To build and play with the examples locally, run:
npm install
npm run dev
Then open localhost:9000
in a browser.
You can also visit the wiki for more examples.
Commit message format and publishing
This repository is published using semantic-release
, with the default AngularJS Commit Message Conventions.