DevSnips

React Component

Copy Button

Clipboard copy with transient feedback. Uses the async Clipboard API with an execCommand fallback. On success, swaps the icon to a check and the label to "Copied", then reverts. An `aria-live` region announces the copied state.