Skip to content

sixpaq/capitalsix-react-forms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Forms

This module provides an easy way to setup forms. It manages all form data and provides bi-directional binding of the data to the fields.

Next to managing the form it also provides all kinds of input components with automatic validations.

Example

    <FormProvider
      disabled={disabled}
      data={myDataObject}
      onChange={onChange}
      onSubmit={onSubmit}
      onCanSubmit={onCanSubmit}>
        <Field id="lastname" required />
        <Field id="middlename" />
        <Field id="initials" required />
        <ChoiceField id="gender" required options={['Male', 'Female', 'Other']} />
        <DateField id="birthdate" required />
    </FormProvider>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published