PureBlazor.Components
0.8.0
Prefix Reserved
See the version list below for details.
dotnet add package PureBlazor.Components --version 0.8.0
NuGet\Install-Package PureBlazor.Components -Version 0.8.0
<PackageReference Include="PureBlazor.Components" Version="0.8.0" />
paket add PureBlazor.Components --version 0.8.0
#r "nuget: PureBlazor.Components, 0.8.0"
// Install PureBlazor.Components as a Cake Addin #addin nuget:?package=PureBlazor.Components&version=0.8.0 // Install PureBlazor.Components as a Cake Tool #tool nuget:?package=PureBlazor.Components&version=0.8.0
PureBlazor Components
[!NOTE] This component library is pre-release software.
Native Blazor UI components. Free to use for any Blazor project. Works seamlessly with PureBlazor CMS.
Features
- Native Blazor - Built for Blazor, not a wrapper around a JavaScript library.
- Blazing Fast - Built with performance in mind.
- Headless Mode - Turn off the default theme globally or per component.
- Tailwind Compatible - Automatically merges your Tailwind classes with built-in styles.
Getting started
Installation
Install the PureBlazor.Components
NuGet package.
dotnet add package PureBlazor.Components
Register the components and services to your Program.cs
file.
builder.Services.AddPureBlazorComponents();
Include the following scripts in your App.razor
file. Change your brand
colors to match your desired primary color.
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
darkMode: 'class',
theme: {
extend: {
fontFamily: {
sans: ['Inter var', 'ui-sans-serif', 'system-ui', '-apple-system', 'BlinkMacSystemFont', "Segoe UI", 'Roboto', "Helvetica Neue", 'Arial', "Noto Sans", 'sans-serif', "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"],
},
borderRadius: {
'xs': '0.0625rem',
},
colors: {
brand: {
'50': '#eff9ff',
'100': '#dff1ff',
'200': '#b7e5ff',
'300': '#77d1ff',
'400': '#2fbbff',
'500': '#04a3f3',
'600': '#0081d0',
'700': '#0067a8',
'800': '#015486',
'900': '#074873',
'950': '#052e4c',
},
}
}
},
}
</script>
[!NOTE] The Nuget package currently only supports use with the Tailwind CDN.
Compile time support will come in the future. If you want compile-time CSS, add the
PureBlazor.Components
project directly to your solution.
Screenshots
FAQ
Why not use xx
library?
- There are many great libraries out there, but we wanted to build something that was simple and easy to use. We also wanted to build something that was tailored to the PureBlazor CMS.
- We also wanted to build something that was fast. We have a benchmark suite in
/tests/benchmarks
that we use to measure performance. - Ultimately, we think there is plenty of room for more libraries in the Blazor ecosystem.
Is this library free to use?
- Yes! This library is free to use for any Blazor project.
Can I use this library with .NET MAUI Blazor projects?
- This library should work with .NET MAUI, but we have not tested it yet. Please let us know if you have any issues.
Can I use this library with Blazor WebAssembly / Blazor Server / InteractiveAuto?
- Yes. This library supports all Blazor hosting models.
Is this library production-ready?
- No. This library is still in development.
Do you accept contributions?
- Yes! We accept contributions. Please see the CONTRIBUTING.md file for more information.
How do I report a bug?
- Please open an issue on the GitHub repository.
- Please include as much information as possible, including the version of the library you are using, the browser you are using, and any steps to reproduce the issue.
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. |
-
net8.0
- Microsoft.AspNetCore.Components.Web (>= 8.0.1)
- Microsoft.AspNetCore.Components.WebAssembly (>= 8.0.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 8.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on PureBlazor.Components:
Package | Downloads |
---|---|
PureBlazor.Components.AspNetCore
ASP.NET Core integration package for PureBlazor UI components. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.40.0-rc2 | 38 | 11/2/2024 |
0.32.8 | 96 | 9/20/2024 |
0.32.0 | 117 | 9/18/2024 |
0.31.0 | 156 | 5/30/2024 |
0.30.0 | 118 | 5/25/2024 |
0.27.0 | 127 | 5/6/2024 |
0.26.0 | 120 | 5/5/2024 |
0.25.0 | 168 | 5/5/2024 |
0.24.0 | 112 | 5/5/2024 |
0.23.0 | 108 | 5/4/2024 |
0.22.0 | 100 | 5/3/2024 |
0.19.0 | 120 | 4/29/2024 |
0.18.0 | 202 | 4/26/2024 |
0.17.0 | 109 | 4/26/2024 |
0.16.0 | 114 | 4/26/2024 |
0.15.0 | 122 | 4/26/2024 |
0.14.0 | 121 | 4/26/2024 |
0.13.0 | 128 | 4/26/2024 |
0.12.0 | 120 | 4/26/2024 |
0.11.0 | 115 | 4/26/2024 |
0.10.0-preview1 | 96 | 4/9/2024 |
0.9.2 | 114 | 4/4/2024 |
0.9.1 | 105 | 4/4/2024 |
0.9.0 | 107 | 4/4/2024 |
0.8.0 | 109 | 4/4/2024 |
0.7.0 | 129 | 4/4/2024 |
0.6.0 | 117 | 4/3/2024 |
0.5.0 | 135 | 4/2/2024 |
0.4.0 | 106 | 4/2/2024 |
0.3.0 | 129 | 4/2/2024 |
0.2.0 | 128 | 4/1/2024 |
0.2.0-preview | 95 | 4/26/2024 |
0.1.0 | 119 | 3/21/2024 |
0.1.0-alpha.1 | 101 | 2/2/2024 |
0.0.9 | 120 | 3/21/2024 |
Add PureFooter, PureNavLink, Enable Nullables