Components
ButtonRow
Form.ButtonRow
is a wrapper for horizontally separated buttons.
Element
Form.Element
is a wrapper component for the HTML form element.
Handler
Form.Handler
provides both the DataContext.Provider and a HTML form element.
MainHeading
Form.MainHeading
is a standardized main heading for sections, ensuring default layout, spacing etc.
Schema validation
Schema validation can be done with a JSON Schema which makes it possible to describe the data structure and validation needs, both for the individual value, and more complex rules across the data set.
SubHeading
Form.SubHeading
is a standardized sub heading for sections, ensuring default layout, spacing etc.
SubmitButton
Form.SubmitButton
connects to the Form.Handler
to submit the active state of the internal DataContext, triggering onSubmit
.