A Tweet Button component for Blazor.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.assets
SampleSite
Toolbelt.Blazor
.gitattributes
.gitignore
LICENSE
README.md
Toolbelt.Blazor.TwitterShareButton.sln
nuget.config

README.md

Blazor Tweet Button NuGet Package

Summary

A Tweet Button component for Blazor.

How to install and use?

1. Installation and Registration

Step.1-1 Install the library via NuGet package, like this.

> dotnet add package Toolbelt.Blazor.TwitterShareButton

Step.1-2 Register tag helper to your Blazor app, like this.

// _ViewImports.cshtml
...
@addTagHelper *, Toolbelt.Blazor.TwitterShareButton

2. Usage in your Blazor component (.cshtml)

You can use TwitterShareButton component.

If you implement your component like this,

<TwitterShareButton 
  Text="@($"Current Count is {currentCount}")"
  Size="Large"></TwitterShareButton>

Then you will get this.

fig.1

Release Note

  • v.2.0.0 - BREAKING CHANGE: Support Blazor v.0.8.0 (not compatible with v.0.7.0 or before.)
  • v.1.0.1 - Suppressed the flicker that occurs when parameters are updated.
  • v.1.0.0 - 1st release.

License

Mozilla Public License Version 2.0