FormCraft 4.0.0
dotnet add package FormCraft --version 4.0.0
NuGet\Install-Package FormCraft -Version 4.0.0
<PackageReference Include="FormCraft" Version="4.0.0" />
<PackageVersion Include="FormCraft" Version="4.0.0" />
<PackageReference Include="FormCraft" />
paket add FormCraft --version 4.0.0
#r "nuget: FormCraft, 4.0.0"
#:package FormCraft@4.0.0
#addin nuget:?package=FormCraft&version=4.0.0
#tool nuget:?package=FormCraft&version=4.0.0
FormCraft
A powerful, type-safe dynamic form library for Blazor applications with fluent API design.
🌐 Live Demo | 📚 Documentation
Features
- Type-Safe: Strongly typed form builders with compile-time validation
- Fluent API: Intuitive, readable form configuration
- Dynamic Validation: Built-in and custom validators with async support
- Field Dependencies: Fields can react to changes in other fields
- Multiple Layouts: Vertical, horizontal, grid, and inline layouts
- Extensible Rendering: Custom field renderers for any data type
- MudBlazor Integration: Beautiful UI components out of the box
Quick Start
- Install the NuGet package:
dotnet add package FormCraft
- Register services in
Program.cs:
builder.Services.AddFormCraft();
- Create a form:
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();
You can also configure fields using attributes on your model:
public class MyModel
{
[Required]
[TextField("Full Name", "Enter your name")]
public string Name { get; set; } = string.Empty;
}
var configuration = FormBuilder<MyModel>.Create()
.AddFieldsFromAttributes()
.Build();
- Render the form:
<FormCraftComponent
TModel="MyModel"
Model="@myModel"
Configuration="@configuration"
OnValidSubmit="@HandleSubmit"
ShowSubmitButton="true" />
Documentation
For detailed documentation and examples, visit our interactive documentation site.
License
This project is licensed under the MIT License.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- FluentValidation (>= 12.1.1)
- Microsoft.AspNetCore.Components.Web (>= 10.0.12)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.12)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.12)
-
net8.0
- FluentValidation (>= 12.1.1)
- Microsoft.AspNetCore.Components.Web (>= 8.0.31)
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.2)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on FormCraft:
| Package | Downloads |
|---|---|
|
FormCraft.ForMudBlazor
MudBlazor UI framework implementation for FormCraft dynamic forms. Provides beautiful Material Design components for your dynamic forms. |
|
|
AgileExtensionBuilder.Host.Plugins.DecsPR
Package Description |
|
|
FormCraft.ForFluentUI
Fluent UI Blazor v5 implementation for FormCraft dynamic forms. Renders your dynamic forms with Microsoft's Fluent design language. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.0 | 72 | 9/25/2026 |
| 3.1.0 | 5,741 | 6/10/2026 |
| 3.0.1 | 154 | 6/10/2026 |
| 3.0.0 | 151 | 6/10/2026 |
| 2.5.0 | 7,599 | 8/8/2025 |
| 2.4.0 | 479 | 7/16/2025 |
| 2.3.0 | 268 | 7/8/2025 |
| 2.2.0 | 339 | 7/2/2025 |
| 2.1.0 | 338 | 6/19/2025 |
| 2.0.0 | 394 | 6/10/2025 |
| 1.3.2 | 293 | 6/8/2025 |
| 1.2.0 | 306 | 6/8/2025 |
| 1.1.0 | 304 | 6/8/2025 |
| 1.0.3 | 215 | 6/7/2025 |