Installation
Installing Static Components is straightforward. You need a .NET 6 or above project and a single NuGet package.
-
Install the NuGet package
dotnet add package TechGems.StaticComponents --version 1.2.0 -
Register the tag helpers
Open your
_ViewImports.cshtmlfile and add references to both your project’s namespace and the Static Components library:@addTagHelper *, YourRazorPagesProject.Web@addTagHelper *, TechGems.StaticComponents -
Start building components!
You’re all set. Continue to Basic Usage to learn how to create your first component.