Zonit.Extensions.Website.Abstractions
0.2.7
dotnet add package Zonit.Extensions.Website.Abstractions --version 0.2.7
NuGet\Install-Package Zonit.Extensions.Website.Abstractions -Version 0.2.7
<PackageReference Include="Zonit.Extensions.Website.Abstractions" Version="0.2.7" />
<PackageVersion Include="Zonit.Extensions.Website.Abstractions" Version="0.2.7" />
<PackageReference Include="Zonit.Extensions.Website.Abstractions" />
paket add Zonit.Extensions.Website.Abstractions --version 0.2.7
#r "nuget: Zonit.Extensions.Website.Abstractions, 0.2.7"
#:package Zonit.Extensions.Website.Abstractions@0.2.7
#addin nuget:?package=Zonit.Extensions.Website.Abstractions&version=0.2.7
#tool nuget:?package=Zonit.Extensions.Website.Abstractions&version=0.2.7
Zonit.Extensions
Useful tools for Blazor
Abstractions Package
Zonit.Extensions.Abstractions - Interfaces and base abstractions
dotnet add package Zonit.Extensions.Abstractions
Zonit.Extensions - Core utilities and extensions
dotnet add package Zonit.Extensions
What's included:
- Exceptions - Structured exception handling with i18n support, error codes, and strongly-typed error parameters
- Reflection - Utility class for discovering assemblies and types that implement or inherit from a specified base type
- Xml - Utility class for serializing objects to XML and deserializing XML back to objects
- ValueObjects - Immutable value objects for common domain concepts (Price, Title, Description, UrlSlug, Culture)
Blazor Website Extensions
Zonit.Extensions.Website.Abstractions - Interfaces and abstractions for Blazor
dotnet add package Zonit.Extensions.Website.Abstractions
Zonit.Extensions.Website - Blazor-specific components and utilities
dotnet add package Zonit.Extensions.Website
What's included:
- Components - Reusable Blazor components
- Cookie handling with Blazor support (see below)
MudBlazor Integration
Zonit.Extensions.Website.MudBlazor - MudBlazor converters for Value Objects
dotnet add package Zonit.Extensions.Website.MudBlazor
What's included:
ZonitTextField<T>- MudTextField with automatic Value Object converterZonitTextArea<T>- Multiline version for longer content- Built-in exception handling with automatic error messages
- AOT and Trimming compatible (type inference at compile time)
Supported Value Objects: Title, Description, UrlSlug, Content, Url, Culture
Usage (type is inferred from @bind-Value):
@using Zonit.Extensions.MudBlazor
<ZonitTextField @bind-Value="Model.Title" Label="Title" />
<ZonitTextField @bind-Value="Model.Description" Label="Description" />
<ZonitTextField @bind-Value="Model.Slug" Label="URL Slug" />
@* For multiline content *@
<ZonitTextArea @bind-Value="Model.Content" Label="Content" />
No need to specify T="Title" - the compiler infers the type automatically!
Cookie handling with support for Blazor
Installation:
Add this in Routes.razor
@using Zonit.Extensions
<ZonitCookiesExtension />
Services in Program.cs
builder.Services.AddCookiesExtension();
App in Program.cs
app.UseCookiesExtension();
Example:
@page "/"
@rendermode InteractiveServer
@using Zonit.Extensions.Website
@inject ICookieProvider Cookie
@foreach (var cookie in Cookie.GetCookies())
{
<p>@cookie.Name @cookie.Value</p>
}
API
public CookieModel? Get(string key);
public CookieModel Set(string key, string value, int days = 12 * 30);
public CookieModel Set(CookieModel model);
public Task<CookieModel> SetAsync(string key, string value, int days = 12 * 30);
public Task<CookieModel> SetAsync(CookieModel model);
public List<CookieModel> GetCookies();
We use SetAsync only in the Blazor circuit. It executes the JS code with the Cookies record.
| 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 is compatible. 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
- No dependencies.
-
net8.0
- No dependencies.
-
net9.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Zonit.Extensions.Website.Abstractions:
| Package | Downloads |
|---|---|
|
Zonit.Extensions.Website
ASP.NET Core and Blazor web extensions providing base components (PageBase, PageEditBase, PageViewBase), navigation services, breadcrumbs management, toast notifications, cookie handling, and data protection utilities for building modern web applications. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.2.7 | 31 | 1/16/2026 |
| 0.2.6 | 32 | 1/15/2026 |
| 0.2.4 | 38 | 1/15/2026 |
| 0.2.3 | 32 | 1/15/2026 |
| 0.2.2 | 32 | 1/15/2026 |
| 0.2.1 | 96 | 1/11/2026 |
| 0.2.0 | 93 | 1/11/2026 |
| 0.1.54 | 134 | 1/6/2026 |
| 0.1.53 | 101 | 1/4/2026 |
| 0.1.52 | 102 | 1/4/2026 |
| 0.1.51 | 99 | 1/2/2026 |
| 0.1.50 | 424 | 11/18/2025 |
| 0.1.27 | 163 | 8/16/2025 |
| 0.1.26 | 195 | 8/14/2025 |
| 0.1.25 | 273 | 7/26/2025 |
| 0.1.24 | 284 | 7/26/2025 |
| 0.1.23 | 317 | 7/26/2025 |
| 0.1.22 | 323 | 7/26/2025 |
| 0.1.21 | 327 | 7/26/2025 |
| 0.1.20 | 538 | 7/21/2025 |
| 0.1.19 | 534 | 7/21/2025 |
| 0.1.18 | 383 | 7/20/2025 |
| 0.1.17 | 167 | 6/27/2025 |
| 0.1.16 | 203 | 6/17/2025 |
| 0.1.15 | 192 | 6/17/2025 |
| 0.1.14 | 201 | 6/16/2025 |
| 0.1.13 | 192 | 6/16/2025 |
| 0.1.12 | 210 | 6/16/2025 |
| 0.1.11 | 204 | 6/16/2025 |
| 0.1.10 | 245 | 6/16/2025 |
| 0.1.9 | 178 | 6/6/2025 |
| 0.1.8 | 207 | 5/28/2025 |
| 0.1.7 | 199 | 5/27/2025 |
| 0.1.6 | 208 | 5/26/2025 |
| 0.1.5 | 193 | 5/26/2025 |
| 0.1.4 | 208 | 5/26/2025 |
| 0.1.3 | 210 | 5/26/2025 |
| 0.1.2 | 175 | 5/26/2025 |
| 0.1.1 | 185 | 5/25/2025 |
| 0.1.0 | 197 | 5/25/2025 |
| 0.0.41 | 594 | 2/5/2025 |
| 0.0.40 | 186 | 2/5/2025 |
| 0.0.39 | 178 | 2/5/2025 |
| 0.0.38 | 163 | 2/5/2025 |
| 0.0.37 | 192 | 2/5/2025 |
| 0.0.36 | 174 | 2/5/2025 |
| 0.0.34 | 204 | 2/1/2025 |
| 0.0.33 | 182 | 2/1/2025 |
| 0.0.32 | 162 | 1/30/2025 |
| 0.0.30 | 213 | 5/20/2024 |
| 0.0.23 | 183 | 5/20/2024 |
| 0.0.21 | 210 | 5/16/2024 |
| 0.0.18 | 208 | 5/15/2024 |
| 0.0.17 | 186 | 5/15/2024 |
| 0.0.15 | 203 | 5/14/2024 |
| 0.0.14 | 197 | 5/12/2024 |
| 0.0.13 | 169 | 5/11/2024 |