Text Field

Example


Installation

$ npm i -S storm-text-field

Usage

HTML

JS

Either import and initialise using a named import:

import TextField from 'storm-text-field';
            
TextField.init('.js-text-field');

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

Load('/content/js/async/storm-text-field.standalone.js').then(() => {
    StormTextField.init('.js-text-field');
});