BlazorComponentUtilities NuGet Package

A clean code approach to conditional CSS Classes in Blazor Components (Razor Components).

When building complex components for ASP.NET Blazor there are often CSS classes generated by multiple factors. Styles can often be added by system & component state, public parameters, and static base CSS classes.

Combining many CSS classes together doesn't scale well, and when components get large it can be tough to reason about. The CSS builder pattern fixes this problem by offering a easy to repeat, easy to read pattern to use across components in a project.




Got any BlazorComponentUtilities Question?





Info

Version: 1.8.0
Author(s): Ed Charbeneau
Last Update: Friday, December 10, 2021
.NET Fiddle: Create the first Fiddle
Project Url: https://github.com/EdCharbeneau/CssBuilder
NuGet Url: https://www.nuget.org/packages/BlazorComponentUtilities


Install
Install-Package BlazorComponentUtilities
dotnet add package BlazorComponentUtilities
paket add BlazorComponentUtilities
BlazorComponentUtilities Download (Unzip the "nupkg" after downloading)

9 packages depend on this package.


Tags



STATS

must-have-score

4.8

avg-downloads-per-day

220

days-since-last-release

868