StackExchange.Stacks.Razor 0.1.0-beta2

The ID prefix of this package has been reserved for one of the owners of this package by Prefix Reserved
.NET 6.0
This is a prerelease version of StackExchange.Stacks.Razor.
dotnet add package StackExchange.Stacks.Razor --version 0.1.0-beta2
NuGet\Install-Package StackExchange.Stacks.Razor -Version 0.1.0-beta2
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="StackExchange.Stacks.Razor" Version="0.1.0-beta2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add StackExchange.Stacks.Razor --version 0.1.0-beta2
#r "nuget: StackExchange.Stacks.Razor, 0.1.0-beta2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install StackExchange.Stacks.Razor as a Cake Addin
#addin nuget:?package=StackExchange.Stacks.Razor&version=0.1.0-beta2&prerelease

// Install StackExchange.Stacks.Razor as a Cake Tool
#tool nuget:?package=StackExchange.Stacks.Razor&version=0.1.0-beta2&prerelease


Library for using Stacks components in Razor.

Warning This repo is not to be used in a production context. It is still a work-in-progress. You have been warned.


dotnet add package StackExchange.Stacks.Razor

Include the service and taghelpers into your project:

// Program.cs

// _ViewImports.cshtml
@using StackExchange.Stacks.Razor
@using StackExchange.StacksIcons;
@addTagHelper *, StackExchange.Stacks.Razor
@addTagHelper *, StackExchange.Stacks.Razor.Stimulus

Start using the taghelpers in your .cshtml files:

<s-Button variant="Primary">Click me!</s-Button>

Local development

Launch the demo / docs site:

cd ./Razor.Stacks.Demo
npm i
npm run build:client
npm start
Product Versions
.NET 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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.1.0-beta2 2,561 2/8/2023
0.1.0-beta 633 1/11/2023