This will solve a constant need for users to copy some information to clipboard.
Add this to the element that has the text that you want to get copied, please note that this functionality will only copy the text that is within this element.
When using the Copy to Clipboard functionality you can select an element to show a message, add this attribute to the text that you want to display this text change
This does not have a default functionality, it should be set along with a target attribute to work.
Replaces the message to show the element got copied to clipboard,
Add a class to change the style of the trigger element when the content is copied.
Add this to the element that has the text that you want to get copied, please note that this functionality will only copy the text that is within this element.
When using the Copy to Clipboard functionality you can select an element to show a message, add this attribute to the text that you want to display this text change
This does not have a default functionality, it should be set along with a target attribute to work.
Replaces the message to show the element got copied to clipboard,
Add a class to change the style of the trigger element when the content is copied.
Do you need multiple instances of this Attribute?
All of our attributes follow the same structure for multiple instances!
In order to use multiple instances on an attribute add -n at the end of the value of the element attribute. being "n" a unique number.
This unique number is how we can tell between multiple instances.
For example, container-2, trigger-2, and target-2 will all be connected to the same instance.
This is what you need to add multiple instances of this: