Toolbelt.Blazor.HeadElement
0.0.1-preview1.0.1
See the version list below for details.
dotnet add package Toolbelt.Blazor.HeadElement --version 0.0.1-preview1.0.1
NuGet\Install-Package Toolbelt.Blazor.HeadElement -Version 0.0.1-preview1.0.1
<PackageReference Include="Toolbelt.Blazor.HeadElement" Version="0.0.1-preview1.0.1" />
<PackageVersion Include="Toolbelt.Blazor.HeadElement" Version="0.0.1-preview1.0.1" />
<PackageReference Include="Toolbelt.Blazor.HeadElement" />
paket add Toolbelt.Blazor.HeadElement --version 0.0.1-preview1.0.1
#r "nuget: Toolbelt.Blazor.HeadElement, 0.0.1-preview1.0.1"
#:package Toolbelt.Blazor.HeadElement@0.0.1-preview1.0.1
#addin nuget:?package=Toolbelt.Blazor.HeadElement&version=0.0.1-preview1.0.1&prerelease
#tool nuget:?package=Toolbelt.Blazor.HeadElement&version=0.0.1-preview1.0.1&prerelease
Blazor Head Element Helper 
Summary
This component and services allows you to change the title of document on your Blazor app.
This package supports both of seiver-side Blazor and client-side Blazor WebAssembly app.
And also supports server-side pre-rendering on your server-side Blazor app.
NOTICE! - This is "Preview" Release
This package is "preview" release at this time.
Some implementations of this packages depends on internals of ASP.NET Core Components.
Especially, server-side pre-rendering is very slow and stressfull, because it captures all requests and buffering all responses on memory.
How to use
- Add package to your project like this.
dotnet add package Toolbelt.Blazor.HeadElement --version 0.0.1-preview1.0.1
- Register "Head Element Helper" service at your Blazor app's
Startup.
using Toolbelt.Blazor.Extensions.DependencyInjection; // <- Add this, and...
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddHeadElementHelper(); // <- Add this.
...
- Open
Toolbelt.Blazor.HeadElementnamespace in_Imports.razorfile.
@* This is "_Imports.razor" *@
...
@using Toolbelt.Blazor.HeadElement
- Markup
<Title>component in your .razor file.
@* This is "Pages/Counter.razor" *@
@page "/counter"
<Title>Counter(@currentCount) - Server Side App</Title>
The title of document will be changed.

Server-side pre-rendering support
If you want to get srever-side pre-rendering support, do this.
- Add
Toolbelt.Blazor.HeadElement.ServerPrerenderingpackage to your project like this.
dotnet add package Toolbelt.Blazor.HeadElement.ServerPrerendering --version 0.0.1-preview1.0.2
- Register "Head Element Server Prerendering" middleware at your server-side Blazor app's
Startup, beforeappUseStaticFiles().
using Toolbelt.Blazor.Extensions.DependencyInjection; // <- Add this, and...
public class Startup
{
public void Configure(IApplicationBuilder app)
{
app.UseHeadElementServerPrerendering(); // <- Add this.
...
app.UseStaticFiles()
...

License
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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 was computed. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.AspNetCore.Components (>= 3.0.0-preview9.19424.4)
- Microsoft.AspNetCore.Components.Web (>= 3.0.0-preview9.19424.4)
- Toolbelt.Blazor.HeadElement.Services (>= 0.0.1-preview1.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories (2)
Showing the top 2 popular GitHub repositories that depend on Toolbelt.Blazor.HeadElement:
| Repository | Stars |
|---|---|
|
jsakamoto/BlazorWasmPreRendering.Build
When you publish your Blazor Wasm app, this package pre-renders and saves the app as static HTML files in your public folder.
|
|
|
ADefWebserver/Blazor-Blogs
Simple blogging application written in Microsoft Server Side Blazor
|
| Version | Downloads | Last Updated |
|---|---|---|
| 7.3.1 | 47,578 | 12/16/2022 |
| 7.3.0 | 3,793 | 10/29/2022 |
| 7.3.0-preview.1 | 204 | 10/27/2022 |
| 7.2.1 | 3,766 | 9/18/2022 |
| 7.2.1-preview.1 | 252 | 9/8/2022 |
| 7.2.0 | 9,451 | 4/20/2022 |
| 7.1.1 | 828 | 4/12/2022 |
| 7.1.0 | 1,860 | 3/28/2022 |
| 7.0.0 | 10,179 | 1/23/2022 |
| 6.0.2 | 7,960 | 12/15/2021 |
| 6.0.1 | 2,131 | 11/30/2021 |
| 6.0.0 | 29,452 | 9/4/2021 |
| 6.0.0-preview.4 | 413 | 8/17/2021 |
| 6.0.0-preview.3 | 307 | 8/12/2021 |
| 6.0.0-preview.2 | 440 | 8/7/2021 |
| 6.0.0-preview.1 | 416 | 7/31/2021 |
| 5.4.3 | 6,178 | 7/30/2021 |
| 5.4.3-preview.1 | 483 | 7/10/2021 |
| 5.4.2 | 16,041 | 5/9/2021 |
| 5.4.1 | 20,106 | 1/30/2021 |
| 5.4.0 | 3,065 | 1/10/2021 |
| 5.3.0 | 610 | 1/10/2021 |
| 5.2.0 | 642 | 1/10/2021 |
| 5.1.0 | 1,082 | 1/9/2021 |
| 5.0.0 | 19,329 | 11/10/2020 |
| 5.0.0-rc.1 | 1,243 | 9/7/2020 |
| 1.2.0 | 14,140 | 6/4/2020 |
| 1.2.0-beta | 520 | 5/29/2020 |
| 1.1.1 | 2,665 | 4/16/2020 |
| 1.1.0.1 | 1,745 | 1/18/2020 |
| 1.0.0 | 1,216 | 11/1/2019 |
| 0.0.1-preview2.0.2 | 464 | 9/19/2019 |
| 0.0.1-preview1.0.1 | 460 | 9/12/2019 |