mi6 / ic-ui-kit

Intelligence Community UI Kit (based on StencilJS)
MIT License
19 stars 23 forks source link

[*NEW* ic-form]: Form component which takes in JSON and dynamically creates a form #465

Open jd239 opened 1 year ago

jd239 commented 1 year ago

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

GCHQ-Developer-094 commented 4 weeks ago

Needs further elaboration - not sure this is a design ticket?

MI6-255 commented 3 weeks ago

Consider if JSON if needed