KlinUtils.Blazor 0.0.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package KlinUtils.Blazor --version 0.0.3
                    
NuGet\Install-Package KlinUtils.Blazor -Version 0.0.3
                    
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="KlinUtils.Blazor" Version="0.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="KlinUtils.Blazor" Version="0.0.3" />
                    
Directory.Packages.props
<PackageReference Include="KlinUtils.Blazor" />
                    
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 KlinUtils.Blazor --version 0.0.3
                    
#r "nuget: KlinUtils.Blazor, 0.0.3"
                    
#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 KlinUtils.Blazor@0.0.3
                    
#: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=KlinUtils.Blazor&version=0.0.3
                    
Install as a Cake Addin
#tool nuget:?package=KlinUtils.Blazor&version=0.0.3
                    
Install as a Cake Tool

KlinUtils.Blazor ๐Ÿงฉ

A lightweight, flexible Blazor component library built with clean markup, extensibility, and developer ergonomics in mind.

NuGet NuGet Downloads GitHub Stars


โœจ Features

  • โœ… Clean, minimal Blazor components for everyday apps
  • ๐ŸŽจ Styled using utility-first classes (Tailwind-friendly)
  • โš™๏ธ Strong parameter APIs and service-injection support
  • ๐Ÿ”„ Two-way binding, programmatic state toggling
  • ๐Ÿงช Fully unit-tested with bUnit

๐Ÿ“ฆ Installation

dotnet add package KlinUtils.Blazor

๐Ÿš€ Components

AlertComponent

<AlertComponent Type="AlertType.Warning" Message="Something went wrong!" />
  • Optional Data="..." to render a bulleted list

  • Alert Type support: Info, Warning, Success, Error

ButtonComponent

<ButtonComponent Label="Submit" OnClick="HandleSubmit" UseImage="true" ImageUrl="icon.png" />
  • Optionally renders custom Content

  • Can show image/icon via parameters

CheckboxComponent

<CheckboxComponent Label="Accept terms" @bind-IsChecked="isChecked" />
  • Custom styles

  • Programmatic Enable() / Disable()

SelectComponent<T>

<SelectComponent T="int"
                 Items="Cities"
                 Placeholder="Choose a city"
                 @bind-Value="SelectedId" />
  • Type-safe generics (int, string, enum, etc.)

  • Supports placeholder and strongly-typed item lists

TextFieldComponent + NumberTextFieldComponent<T>

<TextFieldComponent Placeholder="Email" @bind-Value="email" />
<NumberTextFieldComponent T="decimal" @bind-Value="price" />

FileComponent

<FileComponent @bind-SelectedFile="uploadedFile" />
  • Uses InputFile internally

  • Triggers SelectedFileChanged callback

ModalDialogComponent

<ModalDialogComponent IsVisible="@showModal">
    <ModalContent>
        <h3 class="text-lg">Confirm</h3>
        <p>Are you sure you want to proceed?</p>
    </ModalContent>
</ModalDialogComponent>
  • Accessible modal dialog with internal visibility control

FragmentComponent

<FragmentComponent CssClass="p-4 border" Style="background: #f0f0f0">
    <h4>Child Content Goes Here</h4>
</FragmentComponent>

ContainerComponent + ContainerStatesComponent

<ContainerComponent State="@state">
    <Content>
        <p>Welcome home!</p>
    </Content>
</ContainerComponent>

๐Ÿงช Testing Philosophy

All components are validated using bUnit. Examples include:

  • Parameter assertions ([Parameter])

  • State transitions (Enable, Disable)

  • DOM rendering tests (MarkupMatches, Find)

  • Interaction tests (Click(), ChangeAsync())

๐Ÿ“„ License

This project is licensed under the MIT License.

๐Ÿ’ฌ Support / Feedback

Made with โค๏ธ by Akeem Aweda GitHub repo: github.com/aweklin/KlinUtils. Feature ideas, issues, and contributions welcome.

If KlinUtils.Blazor helps you build better UIs, give it a โญ on GitHub and share the love!

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.0.5 146 7/7/2025
0.0.4 77 7/5/2025
0.0.3 93 7/4/2025
0.0.2 88 7/4/2025
0.0.1 93 7/4/2025