Back
CopyButton
Basic
Beside a code snippet
npm install @mljr/uiMultiple targets
git clone https://github.com/MrCodeEU/ui.gitcd ui && go build ./...Custom Icons
Pass Icon and CopiedIcon to replace the default SVG icons.
curl -sL https://example.com/install.sh | bashUsage
@feedback.CopyButton(feedback.CopyButtonProps{
Text: "text to copy",
Label: "Copy", // default: "Copy"
CopiedLabel: "Copied!", // default: "Copied!"
Icon: myIcon(), // custom icon templ.Component (optional)
CopiedIcon: myCheckIcon(), // custom copied-state icon (optional)
})