KinoClipboard
Small component that allows you to copy text to the clipboard programmatically.
Instructions
Add kino_clipboard to your Livebook dependencies:
Mix.install([
{:kino_clipboard, "~> 0.1.0"}
])Then, use it in your Livebook whenever you want to copy content straight to the clipboard:
KinoClipboard.new("Hello world!")If your content is potentially large, you can use a function to generate it instead:
KinoClipboard.new(fn -> "Hello world!" end)You can also customize the label of the button:
KinoClipboard.new(fn -> "Hello world!" end, label: "Copy to clipboard")License
Copyright (c) 2025 Raphael Vidal Costa
Source code is licensed under the MIT License.