CopyButton
All parameters are optional.
Parameter | Type | Description of Parameter |
---|---|---|
text | String | Text to be copied |
next | Boolean | Copy next element text |
prev | Boolean | Copy previous element text |
all | Boolean | Copy parent element text |
anchor | Boolean | Copy anchor text (the id) |
margin | String | CSS margin String |
Usage
With automatic text detection:
markdown
<CB />
With a set text:
markdown
<CB text="I Copied This" />
With a boolean parameter:
markdown
<CB prev />
See the Examples for more ways to use the CopyButton.
Request a Feature
If you need more options, please open a feature request