| Prop | Type | Default | Description |
|---|---|---|---|
text | string | — | The text snippet or command to display and copy to clipboard. |
durationMs | number | 3000 | Duration in milliseconds that the copied confirmation state remains active. |
onCopy | (text: string) => void | — | Optional callback invoked when the user copies the text. |
showBorderProgress | boolean | true | Whether to display the animated SVG perimeter progress countdown stroke. |
className | string | — | Additional CSS class names. |
strokeDashoffset countdown mapping exactly to durationMs.npx paceui@latest add copy-button