components / copy-button

copy-button.

copy-to-clipboard button with copied/error feedback states.

bunx @justin06lee/chrome@latest init
installation
bunx @justin06lee/chrome@latest add copy-button
props
nametypedefaultdescription
text *string-string to copy
resetMsnumber2000ms before reverting
labels{ idle, copied, error }copy/copied/failed
backgroundstring-CSS background applied to the root element. transparent by default.