Clipboard
A control to allow you to copy content to the clipboard.
Usage
Example
Clipboard(success: "Copied!", error: "Copy failed!", class: "relative", options: {placement: "top"}) do ClipboardSource(class: "hidden") { span { "Born rich!!!" } } ClipboardTrigger do Link(href: "#", class: "gap-1") do Text(size: :small, class: "text-primary") { "Copy the secret of success!!!" } end end end
Copied!
Copy failed!
Components
Component | Built using | Source |
---|---|---|
Clipboard | Phlex | |
ClipboardSource | Phlex | |
ClipboardTrigger | Phlex | |
Link | Phlex | |
Text | Phlex |
Component | Built using | Source |
---|---|---|
Clipboard | Phlex | |
ClipboardPopover | Phlex | |
ClipboardSource | Phlex | |
ClipboardTrigger | Phlex | |
ClipboardController | Stimulus JS |