The form created will contain all ICDS components. The following events will be emitted from the component:
change
error
submit
π° User value
This will allow developers to quickly build forms instead of worrying about which component to use, layout and what objects are returned from the form. This will all be handled by the Form component.
Additional information
Is this something worth looking into?
What are the pros and cons of building a form component which takes in JSON?
Summary
This idea is inspired by https://rjsf-team.github.io/react-jsonschema-form/docs/. We would create a
ic-form
which takes in a JSON schema. The JSON schema would include:The form created will contain all ICDS components. The following events will be emitted from the component:
π° User value
This will allow developers to quickly build forms instead of worrying about which component to use, layout and what objects are returned from the form. This will all be handled by the Form component.
Additional information
π User Stories
TBC
π Acceptance Criteria
TBC
β Designs
N/A
Β π§Ύ Guidance
TBC
Related stories
https://github.com/mi6/ic-design-system/issues/188 https://github.com/mi6/ic-design-system/issues/189 https://github.com/mi6/ic-design-system/issues/203 https://github.com/mi6/ic-design-system/issues/222 https://github.com/mi6/ic-ui-kit/issues/465