easeUI
1

Copy Button

Copies text to the clipboard and trades its icon for a check for a moment, with a label or as a single icon.

https://easeui.dev/invite/7f3k9q

Installation

$ bunx --bun shadcn add @easeui/copy-button

API reference

PropTypeDefaultDescription
valuestring-Text written to the clipboard.
label?string-Visible text. Leave it out for an icon only button.
copiedLabel?stringCopiedVisible text after copying. Default "Copied".
timeout?number1500How long the copied state stays, in ms. Default 1500.
onCopied?((value: string) => void)-Called after the text reaches the clipboard.
className?string--

Updated