Clipboard
Allows you to quickly copy data to the clipboard.
import { clipboard } from '@skeletonlabs/skeleton';
Demo
If your data is available as a primitive data type (string, integer, etc), you can provide it directly to the action.
Copying HTML Contents
To copy the innerHTML for an element, set a data-clipboard
on your target, then provide an
element
reference to the action.
Copying Input Values
To copy the target input value, set a data-clipboard
data attribute on your target, then provide an
input
reference to the action.