SocialMediaSharingBlazor 7.1.0
dotnet add package SocialMediaSharingBlazor --version 7.1.0
NuGet\Install-Package SocialMediaSharingBlazor -Version 7.1.0
<PackageReference Include="SocialMediaSharingBlazor" Version="7.1.0" />
<PackageVersion Include="SocialMediaSharingBlazor" Version="7.1.0" />
<PackageReference Include="SocialMediaSharingBlazor" />
paket add SocialMediaSharingBlazor --version 7.1.0
#r "nuget: SocialMediaSharingBlazor, 7.1.0"
#:package SocialMediaSharingBlazor@7.1.0
#addin nuget:?package=SocialMediaSharingBlazor&version=7.1.0
#tool nuget:?package=SocialMediaSharingBlazor&version=7.1.0
Social Media Sharing Blazor
Blazor class library that enables you to access the native web social media sharing functionality using C#. The library wraps the PWA web share functionality on which you can read more here: https://web.dev/web-share/
Browser Support
Details on browser support can be found here:
https://developer.mozilla.org/en-US/docs/Web/API/Navigator/share#browser_compatibility
Quick Installation Guide
Install Package
dot net cli
dotnet add package SocialMediaSharingBlazor
or
Package Manager
Install-Package SocialMediaSharingBlazor
Add the following to the relevant sections of
Program.cs
using SocialMediaSharingBlazor;
builder.Services.AddSocialMediaSharing();
Add the following to the top of component you want to use it on:
@using SocialMediaSharingBlazor; @inject ISocialMediaSharing socialMediaSharing;
Usage
<button class="btn btn-primary" @onclick="Share">Click me</button>
@code {
private void Share()
{
socialMediaSharing.ShareOnSocialMedia(
title: "Social Media Sharing Blazor",
text: "Check out this blazor library that helps you share on social media using c#",
url: "https://www.nuget.org/packages/SocialMediaSharingBlazor/");
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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 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. |
-
net7.0
- Microsoft.AspNetCore.Components.Web (>= 7.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.