TailwindCssTagHelpers 0.1.0-beta.50
See the version list below for details.
dotnet add package TailwindCssTagHelpers --version 0.1.0-beta.50
NuGet\Install-Package TailwindCssTagHelpers -Version 0.1.0-beta.50
<PackageReference Include="TailwindCssTagHelpers" Version="0.1.0-beta.50" />
<PackageVersion Include="TailwindCssTagHelpers" Version="0.1.0-beta.50" />
<PackageReference Include="TailwindCssTagHelpers" />
paket add TailwindCssTagHelpers --version 0.1.0-beta.50
#r "nuget: TailwindCssTagHelpers, 0.1.0-beta.50"
#:package TailwindCssTagHelpers@0.1.0-beta.50
#addin nuget:?package=TailwindCssTagHelpers&version=0.1.0-beta.50&prerelease
#tool nuget:?package=TailwindCssTagHelpers&version=0.1.0-beta.50&prerelease
tailwindcss-tag-helpers
ASP.NET tag helpers to make working with Tailwind CSS and Tailwind UI easier.
Installation
dotnet add package TailwindCssTagHelper
Setup
In your _ViewImports.cshtml add:
@addTagHelper *, TailwindCssTagHelper
Usage
LinkTagHelper
The link tag helper will compare the href to the current url and apply one of two sets of css classes.
The default-class list will be applied if the urls don't match, and the current-class list will be applied if the urls do match.
The naming of these attributes aligns with the comments found in the Tailwind UI templates and the -class suffix allows the attributes to automatically work with Headwind.
<a
asp-area="" asp-controller="Home" asp-action="Index"
class="px-3 py-2 text-sm font-medium rounded-md"
default-class="text-gray-300 hover:bg-gray-700 hover:text-white"
current-class="text-white bg-gray-900"
>
Home
</a>
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp3.1 is compatible. |
-
.NETCoreApp 3.1
- No dependencies.
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.6.0 | 9,364 | 4/9/2024 |
| 0.5.0 | 6,451 | 2/24/2023 |
| 0.4.0 | 3,214 | 10/13/2022 |
| 0.3.0 | 599 | 10/12/2022 |
| 0.2.0 | 1,025 | 9/25/2022 |
| 0.1.0 | 1,878 | 12/19/2021 |
| 0.1.0-beta.50 | 358 | 8/21/2021 |
| 0.1.0-beta.10 | 376 | 2/19/2021 |