A powerful, type-safe dynamic form library for Blazor applications with fluent API design. Build complex forms with ease using a fluent interface, dynamic validation, field dependencies, and extensible rendering. Try the interactive demo at https://phmatray.github.io/FormCraft/
$ dotnet add package FormCraftA powerful, type-safe dynamic form library for Blazor applications with fluent API design.
dotnet add package FormCraft
Program.cs:builder.Services.AddDynamicForms();
var configuration = FormBuilder<MyModel>.Create()
.AddRequiredTextField(x => x.Name, "Full Name")
.AddEmailField(x => x.Email)
.AddNumericField(x => x.Age, "Age", min: 18, max: 100)
.Build();
<DynamicFormComponent TModel="MyModel"
Model="@myModel"
Configuration="@configuration"
OnValidSubmit="@HandleSubmit" />
For detailed documentation and examples, visit the documentation site.
This project is licensed under the MIT License.