phmatray/FormCraft ? reverse-engineered prompt
Reverse engineered prompt
Build me a Blazor form library called FormCraft that lets me create dynamic forms from a model with a fluent, type safe API. I want to define fields in code, have the form render itself automatically, and support validation, conditional visibility, field dependencies, custom field renderers, and async validation. It should work nicely with MudBlazor too, so the same forms can use Material style inputs without extra hassle.
Please also include a small demo app that shows a few real examples, like a simple contact form, a registration form, and a more complex form with dependent fields and file upload. If it makes sense, add support for generating a form from a plain C# object with sensible defaults and DataAnnotations when present. Keep it polished, reusable, and easy to extend. Look up current Blazor and MudBlazor docs online if you need to.
Are you gonna build this?
make sure you review the code using coderabbit