Tempest.Blazor
1.0.0-beta.1
This is a prerelease version of Tempest.Blazor.
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Tempest.Blazor --version 1.0.0-beta.1
NuGet\Install-Package Tempest.Blazor -Version 1.0.0-beta.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Tempest.Blazor" Version="1.0.0-beta.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Tempest.Blazor" Version="1.0.0-beta.1" />
<PackageReference Include="Tempest.Blazor" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Tempest.Blazor --version 1.0.0-beta.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Tempest.Blazor, 1.0.0-beta.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Tempest.Blazor@1.0.0-beta.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Tempest.Blazor&version=1.0.0-beta.1&prerelease
#tool nuget:?package=Tempest.Blazor&version=1.0.0-beta.1&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Tempest
Component-owned state for Blazor. Your component keeps its state. It just tells the world two things: the work it does, and the buttons it exposes.
No store. No reducers. No actions folder. Two attributes and a bus.
// Program.cs
builder.Services.AddTempest();
@inherits StatefulComponent
@if (IsLoadingLoadCart) { <p>Loading…</p> }
else
{
<ul>@foreach (var item in _items) { <li>@item.Name</li> }</ul>
<button @onclick="TryLoadCartCommand">Refresh</button>
}
@code {
private List<CartItem> _items = [];
public record ClearCart(); // the component's public doorbell panel
[Command] // → IsLoadingLoadCart, LoadCartError,
public async Task LoadCart() // LoadCartCommand(), TryLoadCartCommand()
=> _items = await Api.GetCartAsync();
[Event] // rung from anywhere via the bus
private void OnClearCart(ClearCart _) => _items.Clear();
}
Trigger from anywhere — no reference to the component needed:
Bus.Publish<CartComponent.ClearCart>();
What you get per [Command]
| Generated member | Purpose |
|---|---|
IsLoading{Name} |
true while the method runs; re-renders on both edges |
{Name}Error |
last exception caught by Try{Name}Command() |
{Name}Command() |
runs the lifecycle, exceptions propagate |
Try{Name}Command() |
never throws — the exception lands in {Name}Error |
State lives in the component. Nobody reads it but you.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Microsoft.AspNetCore.Components (>= 10.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0-beta.6 | 235 | 7/24/2026 |
| 1.0.0-beta.5 | 90 | 7/23/2026 |
| 1.0.0-beta.3 | 85 | 7/19/2026 |
| 1.0.0-beta.2 | 101 | 7/18/2026 |
| 1.0.0-beta.1 | 93 | 7/12/2026 |