Third-Party Plugins
Clipboard components are tools designed to facilitate the copying and pasting of data within an application. They ensure seamless data transfer and storage, enhancing user efficiency and interaction.
Note that this component requires the use of the third-party Clipboard plugin.
Install clipboard
via npm
npm i clipboard
Include the JavaScript <script>
near the end of your </body>
tag:
<script src="./node_modules/clipboard/dist/clipboard.min.js"></script>
Include the JavaScript <script>
after the helper-clipboard.js
file.
<script src="./node_modules/preline/dist/helper-clipboard.js"></script>
Tooltip example that shows the success message only.
Tooltip example how to change the text.