Blazura 0.0.3
See the version list below for details.
dotnet add package Blazura --version 0.0.3
NuGet\Install-Package Blazura -Version 0.0.3
<PackageReference Include="Blazura" Version="0.0.3" />
<PackageVersion Include="Blazura" Version="0.0.3" />
<PackageReference Include="Blazura" />
paket add Blazura --version 0.0.3
#r "nuget: Blazura, 0.0.3"
#:package Blazura@0.0.3
#addin nuget:?package=Blazura&version=0.0.3
#tool nuget:?package=Blazura&version=0.0.3
Blazura
Blazura is an early-stage, component-driven UI library for Blazor. It offers a growing set of essential UI components and utilities to help you build web applications quickly and consistently. While customization options are currently limited, future releases will focus on expanding flexibility and theming capabilities.
Features
- Rich Component Library: Includes modals, drawers, snackbars, buttons, input controls, layout utilities, and more.
- Customizable Styles: Built with SCSS for easy theming and customization.
- Blazor-First: Designed specifically for Blazor, leveraging its component model and data binding.
- Optimized Bundling: Integrates with WebOptimizer for efficient asset bundling and minification.
- Localization: Support for custom localization, allowing you to adapt component text and messages to different languages and cultures.
- Dark & Light Mode: Supports both dark and light themes out of the box, automatically adapting to user preferences or system settings.
Prerequisites
Before you begin, ensure you have the following installed:
- .NET SDK 9.0 or later
- Node.js and npm (for SCSS/JS bundling)
Getting started
Add Blazura to your project
Install the NuGet packages:
dotnet add package Blazura dotnet add package Microsoft.Extensions.FileProviders.Embedded --version 9 dotnet add package Microsoft.TypeScript.MSBuild
Enable embedded resources:
Add the following to your
.csproj
file to ensure Blazura can find your static assets as embedded resources:<PropertyGroup> <GenerateEmbeddedFilesManifest>true</GenerateEmbeddedFilesManifest> </PropertyGroup> <ItemGroup> <EmbeddedResource Include="**\*.js" /> <EmbeddedResource Include="**\*.scss" /> <EmbeddedResource Remove="wwwroot\**\*.js" /> </ItemGroup>
Copy files from this project to yours
Some files is needed to be copied over to your own project in order to gain access to SCSS variables and other TypeScript functionality.
Files to copy:
- Styles/Root.scss
- Scripts/IClassBringer.ts
- tsconfig.json
Also make a new file
Scripts/ClassBringer.d.ts
and add the following:declare class ClassBringer { public static register(bringer: new () => IClassBringer): void; }
Register services
In
Program.cs
, add:builder.Services.AddBlazuraServices(); builder.Services.AddBlazuraOptimizer();
Start using components
Import the Blazura namespace in your
_Imports.razor
:@using Blazura.Components
Now you can use Blazura components in your Blazor pages.
Add BundleComplete to your App.razor
Add the
BundleComplete
component to yourApp.razor
file to ensure all bundled assets are loaded:<head> <BundleComplete /> </head>
Contributing
Contributions are welcome! Please open issues or submit pull requests for bug fixes, new features, or improvements.
License
This project is licensed under the MIT License. See the LICENSE file for details. However, re-uploading, rebranding, or redistributing this project in a way that obscures or removes original authorship is against the intended use of the license and may result in takedown requests.
Please maintain attribution and do not misrepresent ownership of this software.
Product | Versions 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. |
-
net9.0
- JavaScriptEngineSwitcher.Extensions.MsDependencyInjection (>= 3.24.1)
- JavaScriptEngineSwitcher.V8 (>= 3.29.1)
- LigerShark.WebOptimizer.Core (>= 3.0.436)
- LigerShark.WebOptimizer.Sass (>= 3.0.118)
- Microsoft.AspNetCore.Components.Web (>= 9.0.7)
- Microsoft.AspNetCore.Identity.EntityFrameworkCore (>= 9.0.7)
- Microsoft.ClearScript.Complete (>= 7.5.0)
- Microsoft.EntityFrameworkCore.Relational (>= 9.0.7)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.7)
- Microsoft.Extensions.FileProviders.Embedded (>= 9.0.7)
- Microsoft.Extensions.Hosting.Abstractions (>= 9.0.7)
- NetCore.AutoRegisterDi (>= 2.2.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.