Modulight.Modules.Client.RazorComponents 0.0.7

.NET 5.0
dotnet add package Modulight.Modules.Client.RazorComponents --version 0.0.7
NuGet\Install-Package Modulight.Modules.Client.RazorComponents -Version 0.0.7
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="Modulight.Modules.Client.RazorComponents" Version="0.0.7" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Modulight.Modules.Client.RazorComponents --version 0.0.7
#r "nuget: Modulight.Modules.Client.RazorComponents, 0.0.7"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Modulight.Modules.Client.RazorComponents as a Cake Addin
#addin nuget:?package=Modulight.Modules.Client.RazorComponents&version=0.0.7

// Install Modulight.Modules.Client.RazorComponents as a Cake Tool
#tool nuget:?package=Modulight.Modules.Client.RazorComponents&version=0.0.7

Modulight.Modules.Client.RazorComponents

Modulight provides a place to unify resources, and it can be used to make Razor component library easy to use and manage. The user needn't to take care of related services and <script> or <link> tags in index.html.

// in Startup: void ConfigureServices(ISeviceCollection services)

services.AddModules(builder => {
    builder.UseRazorComponentClientModules().AddModule<FooModule>();
});

For razor components, add ResourceDeclare component to App.razor to load UI resources.

<Modulight.Modules.Client.RazorComponents.UI.ResourceDeclare />

This component will find all resources and global components defined in modules, and render HTML tags for them.

You can also use the following codes to load resources manually (needs IJSRuntime).

// WebAssemblyHost host;
await host.Services.GetRazorComponentClientModuleCollection().LoadResources();
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (6)

Showing the top 5 NuGet packages that depend on Modulight.Modules.Client.RazorComponents:

Package Downloads
StardustDL.RazorComponents.AntDesigns

Wrapper for AntDesign Blazor at https://github.com/ant-design-blazor/ant-design-blazor.

StardustDL.RazorComponents.Markdown

Razor component for Markdown rendering.

StardustDL.RazorComponents.MaterialDesignIcons

Material Design Icons for Blazor, Razor Pages and so on from https://materialdesignicons.com/ .

StardustDL.RazorComponents.Vditors

Wrapper for Vditor Blazor at https://b3log.org/vditor/ .

StardustDL.RazorComponents.Bootstraps

Bootstrap for Blazor, Razor Pages and so on from https://getbootstrap.com/.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.0.7 2,723 5/31/2021
0.0.7-preview.8 234 5/30/2021
0.0.6 628 5/30/2021
0.0.5 780 4/3/2021
0.0.5-preview.18 102 3/14/2021
0.0.5-preview.13 195 3/12/2021
0.0.5-preview.12 110 3/12/2021
0.0.5-preview.11 115 3/10/2021
0.0.5-preview.10 140 3/10/2021
0.0.5-preview.4 122 3/4/2021
0.0.5-preview.2 141 3/4/2021
0.0.4 676 3/4/2021
0.0.4-preview.40 164 2/22/2021
0.0.4-preview.30 239 2/21/2021
0.0.4-preview.28 135 2/20/2021
0.0.4-preview.25 246 2/20/2021
0.0.4-preview.6 136 2/6/2021
0.0.3 234 2/5/2021
0.0.3-preview.39 116 2/3/2021
0.0.3-preview.38 108 2/1/2021
0.0.3-preview.37 120 1/31/2021
0.0.2 204 1/29/2021
0.0.2-preview.36 175 1/17/2021
0.0.2-preview.34 134 1/16/2021
0.0.1-preview.30 127 1/13/2021
0.0.1-preview.29 148 1/13/2021
0.0.1-preview.28 116 1/12/2021
0.0.1-preview.25 117 1/11/2021