PrimerBlazor 1.0.2
dotnet add package PrimerBlazor --version 1.0.2
NuGet\Install-Package PrimerBlazor -Version 1.0.2
<PackageReference Include="PrimerBlazor" Version="1.0.2" />
<PackageVersion Include="PrimerBlazor" Version="1.0.2" />
<PackageReference Include="PrimerBlazor" />
paket add PrimerBlazor --version 1.0.2
#r "nuget: PrimerBlazor, 1.0.2"
#:package PrimerBlazor@1.0.2
#addin nuget:?package=PrimerBlazor&version=1.0.2
#tool nuget:?package=PrimerBlazor&version=1.0.2
PrimerBlazor
A set of Blazor components styled with GitHubβs Primer CSS system.
π Getting Started
PrimerBlazor is available for free on NuGet, and the demo-related source code is open-source on GitHub.
β Install via NuGet (.NET 8+)
Install the package using the NuGet CLI:
dotnet add package PrimerBlazor
π¨ Import Global Styles
Add the following to your wwwroot/index.html
(Blazor WebAssembly) or _Host.cshtml
(Blazor Server):
<link href="_content/PrimerBlazor/css/style.css" rel="stylesheet" />
π Register JS Interop
The JavaScript file primerBlazorJsInterop.js
is automatically included by the PrimerBlazor
package.
π Blazor Web App (.NET 9+) Notes
When using PrimerBlazor in a .NET 9+ Blazor Web App, JavaScript modules are automatically registered using the built-in <script type="importmap">
mechanism.
You do not need to manually add the script reference for primerBlazorJsInterop.js
:
<script type="importmap">{
"imports": {
"./_content/PrimerBlazor/js/primerBlazorJsInterop.js": "./_content/PrimerBlazor/js/primerBlazorJsInterop.wxyz1234.js"
}
}</script>
However, CSS files are not included in the import map and must still be linked manually:
<link href="_content/PrimerBlazor/css/style.css" rel="stylesheet" />
Also, register the interop service in Program.cs
to enable clipboard and dynamic UI behaviors:
builder.Services.AddScoped<PrimerBlazorJsInterop>();
π Add Imports
Include this line in your _Imports.razor
file:
@using PrimerBlazor
π§© Start Using Components
You can now use components like <PrimerBrandButton />
, <PrimerBrandStack />
, and more.
πͺͺ License
MIT Β© 2025 hyeonseok
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 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. |
-
net8.0
- Blazor-ApexCharts (>= 5.1.0)
- Microsoft.AspNetCore.Components (>= 8.0.13)
- Microsoft.AspNetCore.Components.Web (>= 8.0.13)
- Microsoft.Extensions.Http (>= 8.0.1)
-
net9.0
- Blazor-ApexCharts (>= 6.0.0)
- Microsoft.AspNetCore.Components (>= 9.0.2)
- Microsoft.AspNetCore.Components.Web (>= 9.0.2)
- Microsoft.Extensions.Http (>= 9.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.