Skip to content

Installation

Installing Static Components is straightforward. You need a .NET 6 or above project and a single NuGet package.

  1. Install the NuGet package

    dotnet add package TechGems.StaticComponents --version 1.2.0
  2. Register the tag helpers

    Open your _ViewImports.cshtml file and add references to both your project’s namespace and the Static Components library:

    @addTagHelper *, YourRazorPagesProject.Web
    @addTagHelper *, TechGems.StaticComponents
  3. Start building components!

    You’re all set. Continue to Basic Usage to learn how to create your first component.