Copy Button
Button component that copies content from target elements to clipboard.
Hello, World!
Installation
Install the component
templui add copybuttonAdd the JavaScript to your layout
@copybutton.Script()Call this template in your base layout file (e.g., in the <head> section).
Examples
With Input
With Code Block
fmt.Println("Hello, World!")API Reference
Required parameter
Hover for description