components / copy-button
copy-button.
copy-to-clipboard button with copied/error feedback states.
bunx @justin06lee/chrome@latest initinstallation
bunx @justin06lee/chrome@latest add copy-buttonprops
| name | type | default | description |
|---|---|---|---|
| text * | string | - | string to copy |
| resetMs | number | 2000 | ms before reverting |
| labels | { idle, copied, error } | copy/copied/failed | |
| background | string | - | CSS background applied to the root element. transparent by default. |