Socket
Book a DemoInstallSign in
Socket

@lion/form

Package Overview
Dependencies
Maintainers
2
Versions
191
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lion/form

It enhances the functionality of the native `form` component. It is designed to interact with (instances of) form fields

latest
Source
npmnpm
Version
0.15.0
Version published
Maintainers
2
Created
Source

Form >> Overview ||10

import { html } from '@mdjs/mdjs-preview';

import '@lion/input/define';
import '@lion/form/define';

A web component that enhances the functionality of the native form component. It is designed to interact with (instances of) the form controls.

export const main = () => html`
  <lion-form>
    <form>
      <lion-input name="firstName" label="First Name" .modelValue=${'Foo'}></lion-input>
      <lion-input name="lastName" label="Last Name" .modelValue=${'Bar'}></lion-input>
    </form>
  </lion-form>
`;

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 our form, please read form system.

Installation

npm i --save @lion/form
import '@lion/form/define';

Keywords

form

FAQs

Package last updated on 31 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts