NarcRazor 0.2.0

dotnet add package NarcRazor --version 0.2.0
                    
NuGet\Install-Package NarcRazor -Version 0.2.0
                    
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="NarcRazor" Version="0.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NarcRazor" Version="0.2.0" />
                    
Directory.Packages.props
<PackageReference Include="NarcRazor" />
                    
Project file
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 NarcRazor --version 0.2.0
                    
#r "nuget: NarcRazor, 0.2.0"
                    
#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 NarcRazor@0.2.0
                    
#: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=NarcRazor&version=0.2.0
                    
Install as a Cake Addin
#tool nuget:?package=NarcRazor&version=0.2.0
                    
Install as a Cake Tool

NarcRazor

NarcRazor is a .NET 9 Razor Class Library providing generic, accessible and themeable Blazor components. It includes actions, forms, layouts, data display, feedback components and typed Chart.js visualizations.

Installation

Install the package from NuGet.org:

dotnet add package NarcRazor

Import the public component namespace:

@using NarcRazor.Components

Load the global theme in the application host:

<link rel="stylesheet" href="_content/NarcRazor/css/narc-theme.css" />

Applications using NarcChart<TItem> must also register the chart services:

using NarcRazor.Extensions;

builder.Services.AddNarcRazorCharts();

Charts require an interactive Blazor render mode. Chart.js is distributed as a local static web asset and does not use a CDN at runtime.

Example

<NarcCard>
    <Header>Customer</Header>
    <ChildContent>
        <NarcBadge Variant="NarcStatusVariant.Success">Active</NarcBadge>
    </ChildContent>
    <Footer>
        <NarcButton>Save</NarcButton>
    </Footer>
</NarcCard>

All visual component values are backed by global --narc-* CSS variables. Override variables after loading the provided theme to customize the library.

Documentation

Development

dotnet restore NarcRazor.slnx
dotnet build NarcRazor.slnx --configuration Release
dotnet test NarcRazor.slnx --configuration Release

Create a local package:

dotnet pack NarcRazor/NarcRazor.csproj --configuration Release --output artifacts -p:PackageVersion=0.1.0

Stable packages are published from GitHub Actions tags through NuGet.org Trusted Publishing. No long-lived NuGet API key is stored in the repository.

License

NarcRazor is licensed under the MIT License. Third-party notices are available under docs/third-party.

Product Compatible and additional computed target framework versions.
.NET 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
0.2.0 83 7/16/2026
0.1.0 84 7/16/2026