Implementation of the Clipboard API in C# for Microsoft Blazor.
Install-Package Append.Blazor.Clipboard
There is a sample application in /docs folder which is also hosted as documentation.
Scoped by default.
public void ConfigureServices(IServiceCollection services)
{
services.AddClipboard();
}@using Append.Blazor.Clipboard
@inject IClipboardService ClipboardServiceor
[Inject] private IClipboardService _clipboardService { get; set; }await ClipboardService.CopyTextToClipboardAsync("My text to Copy");Please feel free to use the component, open issues, fix bugs or provide feedback.
This project is created and maintained by:
