0.1.33 • Published 4 years ago

react-final-form-schema v0.1.33

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

React Final Form Schema

Generates forms using schema definitions.

Schema - Required data format (structure and validations) is defined with a JSON schema.

UI Schema - additional ui customizations are defined in the ui schema. (layouts, styles & custom widgets).

UI Components

UI components list should implement IWidgets interface. Default widgets are used when widget type is not defined in UI schema.

export interface IWidgets {
  number: {
    default: Widget<NumberInputProps>;
    [x: string]: Widget<NumberInputProps>;
  };
  integer: {
    default: Widget<NumberInputProps>;
    [x: string]: Widget<NumberInputProps>;
  };
  string: {
    default: Widget<TextInputProps>;
    enum: Widget<SelectFieldProps>;
  };
  // other input types

Wrappers

Components used to define layout of the form

  • FormWrapper - render form inputs & buttons.
  • ObjectWrapper
  • ObjectItemWrapper
  • ArrayWrapper
  • ArrayItemWrapper
  • ArrayItemRemoveBtn
  • ArrayItemAddBtn
  • FieldWrapper

Input widgets

Components used to define actual input fields and styles.

  • NumberInput
  • TextInput
  • SelectField
  • CheckBoxField
  • Date Time Pickers
  • & custom widgets implementing relevant interfaces for data types..

Component Layout

alt text

0.1.33

4 years ago

0.1.32

4 years ago

0.1.31

4 years ago

0.1.30

4 years ago

0.1.27

4 years ago

0.1.28

4 years ago

0.1.29

4 years ago

0.1.25

4 years ago

0.1.26

4 years ago

0.1.24

4 years ago

0.1.23

4 years ago

0.1.22

4 years ago

0.1.15

4 years ago

0.1.14

4 years ago

0.1.13

4 years ago

0.1.11

4 years ago

0.1.12

4 years ago

0.1.10

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago