Skip to main content
  1. Docs
  2. Components
  3. Actions

Copy button

Copies a value. The icon turns to a check, "Copied" is announced, and focus stays.

Import
@qeetrix/react/experimental
Status
ExperimentalSince 0.0.4
Renders
<button>Server-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

0.1.0

  • With a visible label it keeps its tooltip and its "Copied" message.

02

0.0.3

  • CopyButton: copies a value or what a function returns, even asynchronously; the icon turns to a check, "Copied" is announced, focus stays, and it resets after 2 seconds. It fails visibly where there's no clipboard.

Every change to @qeetrix/react

Next — ActionsCommand palette