https://www.matblazor.com/

https://github.com/SamProf/MatBlazor

Installation

Install MatBlazor library via nuget.

Install-Package MatBlazor

or

dotnet add package MatBlazor

_Imports.razor

Add @using MatBlazor in main _Imports.razor@using MatBlazor

Usage

MatBlazor components are self-supporting.<MatButton>Test</MatButton>

Static files

Add script section to index.html or _Host.cshtml (head section)<script src=”_content/MatBlazor/dist/matBlazor.js”></script>
<link href=”_content/MatBlazor/dist/matBlazor.css” rel=”stylesheet” />

Register services

Add registration of service to Startup.csservices.AddMatBlazor();

Add MatPortal component

Add MatPortalHost component to root component (App.razor) for some services like MatDialogService, MatPortalService<MatPortalHost></MatPortalHost>

Last modified: December 6, 2020

Author

Comments

Write a Reply or Comment