You have to use the following command to include a Blazor component library application.
dotnet new razorclasslib -o MyComponentLib1
I would suggest you check the below link for better understanding:
https://docs.microsoft.com/en-in/aspnet/core/blazor/class-libraries
