lion/packages/form
github-actions[bot] b935982d38 Version Packages
2021-02-01 10:59:43 +00:00
..
src fix(form): dispatch submit ev on native form node and add docs 2021-01-28 16:10:50 +01:00
test fix(form): dispatch submit ev on native form node and add docs 2021-01-28 16:10:50 +01:00
CHANGELOG.md Version Packages 2021-02-01 10:59:43 +00:00
index.js feat: release inital public lion version 2019-04-26 10:37:57 +02:00
lion-form.js feat: release inital public lion version 2019-04-26 10:37:57 +02:00
package.json Version Packages 2021-02-01 10:59:43 +00:00
README.md fix(form): dispatch submit ev on native form node and add docs 2021-01-28 16:10:50 +01:00

Form

lion-form is a webcomponent that enhances the functionality of the native form component. It is designed to interact with (instances of) the form controls.

Note: Make sure to explicitly put <form> native element as a first child of <lion-form>, in order to function properly.

export default {
  title: 'Forms/Form/Overview',
};

For a full demo of forms integrated with other lion field components, see features overview

Features

  • Data synchronization with models
  • Easy retrieval of form data based on field names
  • Advanced validation possibilities
  • Advanced user interaction scenarios via interaction states
  • Registration mechanism for form controls
  • Accessible out of the box

For more information about fields that are designed for lion-form, please read forms.

How to use

Installation

npm i --save @lion/form
import '@lion/form/lion-form.js';

Example

See full form example