Form

Example


Installation

$ npm i -S storm-form

Usage

HTML

JS

Either import and initialise using a named import:

import Form from 'storm-form';
            
Form.init('.js-form);

Or async using storm-load.js, add the .standalone file to your project, then intiialise using the global name:

Load('/content/js/async/storm-form.standalone.js').then(() => {
    StormForm.init('.js-form');
});