lion/packages/form-core
github-actions[bot] e72ef2a41d Version Packages
2020-08-27 12:09:52 +02:00
..
docs chore: fix demo links and move back icon intro 2020-06-08 17:39:29 +02:00
src feat: update to latest lit-element version 2020-08-27 10:53:03 +02:00
test feat: update to latest lit-element version 2020-08-27 10:53:03 +02:00
test-helpers feat: synchronous form registration system 2020-07-27 14:11:26 +02:00
test-suites feat(form-core): add types for many form-core mixins and tests 2020-08-10 10:37:34 +02:00
types chore: fix lit-element types to reuse lion/core re-export 2020-08-20 16:38:28 +02:00
CHANGELOG.md Version Packages 2020-08-27 12:09:52 +02:00
index.d.ts chore: add form-core type d file for index and change tsc cfg 2020-08-10 13:44:11 +02:00
index.js feat: merge field/validate/choice-input/form-group into @lion/form-core 2020-05-29 17:01:15 +02:00
lion-field.js feat: merge field/validate/choice-input/form-group into @lion/form-core 2020-05-29 17:01:15 +02:00
lion-validation-feedback.js feat: merge field/validate/choice-input/form-group into @lion/form-core 2020-05-29 17:01:15 +02:00
package.json Version Packages 2020-08-27 12:09:52 +02:00
README.md chore: fix more links for storybook 2020-06-04 19:05:25 +02:00
test-helpers.js feat: synchronous form registration system 2020-07-27 14:11:26 +02:00

Form Fundaments

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

Form controls are the most fundamental building block of the Forms. They are the basis of both fields and fieldsets, and the form itself.

Fields

Fields are the actual form controls the end user interacts with. They extend the Field class, which on its turn uses the FormControlMixin. Fields provide a normalized, predictable API for platform components and custom made form controls. On top of this, they feature:

  • data synchronization with models
  • formatting of view values
  • advanced validation possibilities
  • creation of advanced user interaction scenarios via interaction states
  • provision of labels and help texts in an easy, declarative manner
  • better focus management
  • accessibility out of the box
  • advanced styling possibilities: map your own Design System to the internal HTML structure

Platform fields (wrappers)

Custom fields (wrappers)

Whenever a native form control doesn't exist or is not sufficient, a custom form field should be created. One could think of components like:

  • slider
  • combobox
  • autocomplete
  • etc...

Fieldsets

Fieldsets are groups of fields. They can be considered fields on their own as well, since they partly share the normalized api via FormControlMixin. Fieldsets are the basis for:

Other Resources