@exactjs/forms
v0.7.0
Published
Accessible form components for eXact applications.
Maintainers
Readme
@exactjs/forms
Accessible form components for eXact applications.
Usage
<Form errors={this.state.errors} onValidSubmit={save}>
<Field name="email">
<Label>Email</Label>
<Input type="email" />
<FieldError />
</Field>
<Submit pendingText="Saving…">Save</Submit>
</Form>Components
The package provides Form, Field, Label, Input, Textarea, Select,
Checkbox, help text, validation feedback, and coordinated submit controls.
Keep application values and server validation errors in component state. Form context supplies accessible relationships and validation coordination without introducing a second data store. Submission pending state includes validation and async work started by the callback.
See actions and forms. The package publishes inert component build facts for the consuming server bundler's component-library policy.
