Blatternfly 0.6.15
dotnet add package Blatternfly --version 0.6.15
NuGet\Install-Package Blatternfly -Version 0.6.15
<PackageReference Include="Blatternfly" Version="0.6.15" />
paket add Blatternfly --version 0.6.15
#r "nuget: Blatternfly, 0.6.15"
// Install Blatternfly as a Cake Addin #addin nuget:?package=Blatternfly&version=0.6.15 // Install Blatternfly as a Cake Tool #tool nuget:?package=Blatternfly&version=0.6.15
Blatternfly
About The Project
Blazor learning project. Blatternfly is a Blazor implementation of PatternFly.
Built With
- Blazor. Some parts of the form and input base components has been copied over from Blazor source code.
- PatternFly.
Getting started
Prerequisites
- .NET 6.0
Imports
Add the following to _Imports.razor
@using Blatternfly
@using Blatternfly.Components
@using Blatternfly.Layouts
Patternfly CSS
Add the following to index.html
<link href="_content/Blatternfly/patternfly.css" rel="stylesheet" />
<link href="_content/Blatternfly/patternfly-addons.css" rel="stylesheet" />
See also the getting started section on the PatternFly website for more details.
PatternFly Dark Theme
To dynamically enable/disable the dark theme use the ThemeProvider
component, to set the dark theme as the default theme add the class pf-theme-dark
to the <html>
tag.
Configuration
Example of Blatternfly configuration in Program.cs
var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add<App>("#app");
builder.Services.AddScoped(sp => new HttpClient
{
BaseAddress = new Uri(builder.HostEnvironment.BaseAddress)
});
builder.AddBlatternfly();
var webhost = builder.Build();
await webhost.UseBlatternfly();
await webhost.RunAsync();
Trimming
Configure assembly trimming via XML files as explained here 'Customizing Trimming in .NET 5'.
<linker>
<assembly fullname="Blatternfly">
<type fullname="EventHandlers" preserve="all" />
<type fullname="Blatternfly.Interop.MouseEvent" preserve="all" />
<type fullname="Blatternfly.Interop.KeyboardEvent" preserve="all" />
<type fullname="Blatternfly.Interop.ResizeEvent" preserve="all" />
</assembly>
</linker>
License
Distributed under the MIT License. See LICENSE
for more information.
Acknowledgements
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
-
net6.0
- Microsoft.AspNetCore.Components.WebAssembly (>= 6.0.9)
- System.Reactive (>= 5.0.0)
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.6.15 | 653 | 9/26/2022 |
0.6.14 | 455 | 8/14/2022 |
0.6.13 | 538 | 6/3/2022 |
0.6.12 | 461 | 5/7/2022 |
0.6.11 | 456 | 4/16/2022 |
0.6.10 | 433 | 4/8/2022 |
0.6.9 | 482 | 3/12/2022 |
0.6.8 | 482 | 2/13/2022 |
0.6.7 | 482 | 2/5/2022 |
0.6.6 | 483 | 1/28/2022 |
0.6.5 | 472 | 1/14/2022 |
0.6.4 | 322 | 12/18/2021 |
0.6.3 | 1,388 | 11/20/2021 |
0.6.2 | 322 | 11/9/2021 |
0.6.1-pre | 152 | 10/23/2021 |
0.6.0-pre | 188 | 10/16/2021 |
0.5.0 | 484 | 10/2/2021 |
0.4.1 | 399 | 9/26/2021 |
0.4.0 | 402 | 9/26/2021 |
0.3.0 | 341 | 9/25/2021 |
0.2.0 | 374 | 9/18/2021 |
0.1.0 | 341 | 9/17/2021 |