Blatternfly 0.6.8
See the version list below for details.
dotnet add package Blatternfly --version 0.6.8
NuGet\Install-Package Blatternfly -Version 0.6.8
<PackageReference Include="Blatternfly" Version="0.6.8" />
paket add Blatternfly --version 0.6.8
#r "nuget: Blatternfly, 0.6.8"
// Install Blatternfly as a Cake Addin #addin nuget:?package=Blatternfly&version=0.6.8 // Install Blatternfly as a Cake Tool #tool nuget:?package=Blatternfly&version=0.6.8
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.
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="Blatternfly.Components.CalendarMonth" preserve="all" />
<type fullname="Blatternfly.Components.Toggle" preserve="all" />
<type fullname="Blatternfly.Components.SelectToggle" preserve="all" />
<type fullname="Blatternfly.Components.JumpLinksInteropModule" preserve="all" />
<type fullname="Blatternfly.Interop.EventHandlers" preserve="all" />
<type fullname="Blatternfly.Interop.MouseEvent" preserve="all" />
<type fullname="Blatternfly.Interop.KeyboardEvent" preserve="all" />
<type fullname="Blatternfly.Interop.ResizeEvent" preserve="all" />
<type fullname="Blatternfly.Interop.ResizeObserver" preserve="all" />
<type fullname="Blatternfly.Interop.WindowObserver" preserve="all" />
</assembly>
</linker>
License
Distributed under the MIT License. See LICENSE
for more information.
Acknowledgements
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- Microsoft.AspNetCore.Components.WebAssembly (>= 6.0.2)
- 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 | 484 | 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 |