Skip to content

FormContext - Add context for Form to manage input state #7507

@jpuzz0

Description

@jpuzz0

Is this a new component or an extension of an existing one?
This is a new component for providing Context to a Form, FormContextProvider.

Describe the feature
As a developer, I would like to be able to track input values, errors, validation, and what is touched in a Form by offering a central location for this state by way of context.

Any other information?

  • This context will be usable independently of the Form component for now, but the intention is to also modify Form (Wrap Form in a FormContextProvider) and FormGroup to utilize this context so that setters and getters won't have to be called manually.
  • This is the first step towards a home-grown solution to form state management for Patternfly.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions