Pines.TagHelpers
0.4.1
dotnet add package Pines.TagHelpers --version 0.4.1
NuGet\Install-Package Pines.TagHelpers -Version 0.4.1
<PackageReference Include="Pines.TagHelpers" Version="0.4.1" />
paket add Pines.TagHelpers --version 0.4.1
#r "nuget: Pines.TagHelpers, 0.4.1"
// Install Pines.TagHelpers as a Cake Addin #addin nuget:?package=Pines.TagHelpers&version=0.4.1 // Install Pines.TagHelpers as a Cake Tool #tool nuget:?package=Pines.TagHelpers&version=0.4.1
Pines.TagHelpers
Pines.TagHelpers is a collection of ASP.NET Core TagHelpers based on the Pines UI components library using Alpine.js and Tailwind CSS.
Installation
You can install the package via NuGet:
dotnet add package Pines.TagHelpers
To make the Tailwind CSS classes used by Pines.TagHelpers
work, you need to add the following file to your project:
https://github.com/AlexZeitler/Pines.TagHelpers/blob/main/src/Pines.Examples/static/tailwind.html
Make sure to include it in the tailwind.config.js
content
section.
This won't be necessary in the future, as the plan is to include the Tailwind CSS classes in the Pines.TagHelpers
package.
Usage
Add Alpine.js and Tailwind CSS to your _Layout.cshtml
:
<script src="//unpkg.com/alpinejs" defer></script>
Add the Pines.TagHelpers
to your _ViewImports.cshtml
:
@addTagHelper *, Pines.TagHelpers
Components
CopyToClipboard
<copy-to-clipboard text="@Model.TextToBeCopied"></copy-to-clipboard>
Preview:
More details can be found in the Pines.Examples project in this repository.
Want to contribute?
This project is just getting off the ground and could use some help with cleaning things up and refactoring.
If you want to contribute - we'd love it! Just open an issue to work against so you get full credit for your fork. You can open the issue first so we can discuss and you can work your fork as we go along.
If you see a bug, please be so kind as to show how it's failing, and we'll do our best to get it fixed quickly.
Before sending a PR, please create an issue to introduce your idea and have a reference for your PR.
We're using conventional commits, so please use it for your commits as well.
Discussions
If you want to discuss an Pines.TagHelpers
issue or PR in more detail, feel free to start a discussion.
You can also join our Discord server to discuss the project.
License
The MIT License (MIT). Please see License File for more information.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. 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 is compatible. 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 is compatible. 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. |
-
net6.0
- Alpine.TagHelpers (>= 0.2.0)
- HeroiconsTagHelper (>= 2.0.18)
- JetBrains.Annotations (>= 2023.3.0)
- Microsoft.AspNetCore.Components.Web (>= 6.0.26)
-
net7.0
- Alpine.TagHelpers (>= 0.2.0)
- HeroiconsTagHelper (>= 2.0.18)
- JetBrains.Annotations (>= 2023.3.0)
- Microsoft.AspNetCore.Components.Web (>= 7.0.15)
-
net8.0
- Alpine.TagHelpers (>= 0.2.0)
- HeroiconsTagHelper (>= 2.0.18)
- JetBrains.Annotations (>= 2023.3.0)
- Microsoft.AspNetCore.Components.Web (>= 8.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.