TimeWarp.State.Plus extends TimeWarp.State with additional, features, middleware and components to simplify and enhance your Blazor applications.
TimeWarp.State.Plus extends the core functionality with additional features:
- PersistentState
- Key Feature: Automates the persistence of state in browser storage.
- Usage: Annotate state classes with
[PersistentState]
to enable. - Storage Options: Supports both
LocalStorage
andSessionStorage
.
- MultiTimer System: A flexible framework for managing multiple timers in your application.
- It supports configurable timers
- Activity-based resets.
Example:
// Register the required services in Program.cs
// serviceCollection.AddTransient(typeof(IRequestPostProcessor<,>), typeof(PersistentStatePostProcessor<,>));
// serviceCollection.AddScoped<IPersistenceService, PersistenceService>();
[PersistentState(PersistentStateMethod.LocalStorage)]
public partial class Counter2State : State<Counter2State>
{
// State implementation
}
- InputColor
- Key Feature: A color picker input component.
- Usage:
<InputColor @bind-Value="Color" />
- ValueType: System.Drawing.Color
- ThemeState
- Key Feature: Manages the
CurrentTheme
of your application (Light, Dark, System). - Actions: UpdateTheme
- Key Feature: Manages the
If you find this project useful, please give it a star. Thanks!
For a quick start, refer to the middleware section in the full Documentation.
dotnet add package TimeWarp.State.Plus
Check out the latest NuGet packages on the TimeWarp NuGet page.
View the Release Notes for detailed information on each release.
This project is licensed under the Unlicense.
Your contributions are welcome! Before starting any work, please open a discussion.
Help with the documentation is also greatly appreciated.
If you have an issue and don't receive a timely response, feel free to reach out on our Discord server.