A Blazor library to add a Copy to Clipboard button to your application.
It's a beta version.
- Customize CSS Class for button
With Package Manager:
Install-Package BlazorKit.CopyToClipboard
With .NET CLI:
dotnet add package BlazorKit.CopyToClipboard
Add the following line to your Program.cs file
builder.Services.AddScoped<IClipboardService, ClipboardService>();
Add the component to your page (take a look at the sample project)
<CopyToClipboard Text="Hello World" />
Clone the project
git clone https://github.com/kasuken/BlazorKit.CopyToClipboard
Go to the project directory
cd BlazorKit.CopyToClipboard
Start
dotnet run
Contributions are always welcome!