Sunbird-Ed/SunbirdEd-forms — reverse-engineered prompt
Reverse engineered prompt
Build me a reusable Angular form component library for Sunbird Ed apps. I want one form component that I can drop into another Angular page and feed a config object, then it should render the right form fields automatically.
It should support basic fields like text box, text area, single drop down, and multi select drop down. Drop downs should work with a simple static list, and also with a custom function that can load options and show loading while it runs. Please leave a clean placeholder for API based drop down data later, even if it is not fully built now.
The form should send back the current values and validity status whenever the user changes something, so the parent app can save or react to it. Include a small sample config and demo usage so I can see how to use it. Keep it compatible with Angular 11, use TypeScript, and add basic tests and linting. Look up current docs online if needed.
Want more depth? Deep Reverse