CopyButton
A button component that copies text to the clipboard with visual feedback.
Example
Usage
CopyButton Props
| Prop | Type | Default |
|---|---|---|
onCopy | function | — |
onError | function | — |
timeout | number | "2000" |
value* | string | — |
A button component that copies text to the clipboard with visual feedback.
import { CopyButton } from '@ivaldi/ui'<CopyButton value="Text to copy" />
| Prop | Type | Default |
|---|---|---|
onCopy | function | — |
onError | function | — |
timeout | number | "2000" |
value* | string | — |