0.1.33 • Published 5 years ago

react-final-form-schema v0.1.33

Weekly downloads
2
License
MIT
Repository
github
Last release
5 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

5 years ago

0.1.32

5 years ago

0.1.31

5 years ago

0.1.30

5 years ago

0.1.27

5 years ago

0.1.28

5 years ago

0.1.29

5 years ago

0.1.25

5 years ago

0.1.26

5 years ago

0.1.24

5 years ago

0.1.23

5 years ago

0.1.22

5 years ago

0.1.15

5 years ago

0.1.14

5 years ago

0.1.13

5 years ago

0.1.11

5 years ago

0.1.12

5 years ago

0.1.10

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago