PSC.Blazor.Components.CopyToClipboard
1.0.1
See the version list below for details.
dotnet add package PSC.Blazor.Components.CopyToClipboard --version 1.0.1
NuGet\Install-Package PSC.Blazor.Components.CopyToClipboard -Version 1.0.1
<PackageReference Include="PSC.Blazor.Components.CopyToClipboard" Version="1.0.1" />
paket add PSC.Blazor.Components.CopyToClipboard --version 1.0.1
#r "nuget: PSC.Blazor.Components.CopyToClipboard, 1.0.1"
// Install PSC.Blazor.Components.CopyToClipboard as a Cake Addin #addin nuget:?package=PSC.Blazor.Components.CopyToClipboard&version=1.0.1 // Install PSC.Blazor.Components.CopyToClipboard as a Cake Tool #tool nuget:?package=PSC.Blazor.Components.CopyToClipboard&version=1.0.1
CopyToClipboard component for Blazor
This is a CopyToClipboard component for Blazor WebAssembly and Blazor Server with .NET6. When the user press the button, the component copies the text in the system clipboard. So, the user can paste the text everywhere else.
For more details about the component, read me post. For support, open your question on my Forum.
Status of the component
The component is a button. When the user press the button the value of the property Text
is trying to copy this value into the system clipboard.
Successful copied
If the component had successfully copied the text into the clipboard, the button changes for few seconds its aspect to inform the user the copy had success.
Failed copied
If the component hadn't successfully copied the text into the clipboard, the button changes for few seconds its aspect to inform the user the copy failed.
Properties
Name | Description | Default |
---|---|---|
Id | The component Id. If it is not specified, an new Id wiil be genrated | CopyToClipboard-{GUID} |
SuccessButtonClass | CSS class for when the text is copied successful in the clipboard | btn btn-success |
InfoButtonClass | CSS class for the normal state of the button | btn btn-info |
ErrorButtonClass | This class is used when the component can't copy the text into the system clipboard | btn btn-danger |
CopyToClipboardText | The text to display on the button | Copy to clipboard |
CopiedToClipboardText | The text to display when the component successfully copied the text in the system clipboard | Copied to clipboard! |
ErrorText | The text to display when the component can't copy the text into the system clipboard | Oops. Try again. |
FontAwesomeCopyClass | Based on FontAwesome the icon to display for the normal state of the button | fa fa-clipboard |
FontAwesomeCopiedClass | Based on FontAwesome the icon to display after the component successfully copied the text into the system clipboard | fa fa-check |
FontAwesomeErrorClass | Based on FontAwesome the icon to display when the component had an error to copy the text into the clipboard | fa fa-exclamation-circle |
Other Blazor components
- DataTable for Blazor: DataTable component for Blazor WebAssembly and Blazor Server
- Markdown editor for Blazor: This is a Markdown Editor for use in Blazor. It contains a live preview as well as an embeded help guide for users.
- Modal dialog for Blazor: Simple Modal Dialog for Blazor WebAssembly
- PSC.Extensions: A lot of functions for .NET6 in a NuGet package that you can download for free. We collected in this package functions for everyday work to help you with claim, strings, enums, date and time, expressions�
- Quill for Blazor: Quill Component is a custom reusable control that allows us to easily consume Quill and place multiple instances of it on a single page in our Blazor application
- Segment for Blazor: This is a Segment component for Blazor Web Assembly and Blazor Server
- Tabs for Blazor: This is a Tabs component for Blazor Web Assembly and Blazor Server
More examples and documentation
- Write a reusable Blazor component
- Getting Started With C# And Blazor
- Setting Up A Blazor WebAssembly Application
- Working With Blazor Component Model
- Secure Blazor WebAssembly With IdentityServer4
- Blazor Using HttpClient With Authentication
- InputSelect component for enumerations in Blazor
- Use LocalStorage with Blazor WebAssembly
- Modal Dialog component for Blazor
- Create Tooltip component for Blazor
- Consume ASP.NET Core Razor components from Razor class libraries | Microsoft Docs
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 was computed. 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. |
-
net6.0
- Microsoft.AspNetCore.Components.Web (>= 6.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.