Copy
Clipboard action for addresses and other copyable values.
Demo
Usage
import { Copy } from 'regen-ui'
export function AddressCopy() {
return <Copy value="0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045" />
}API Reference
Copy.Props
| Name | Type | Default | Description |
|---|---|---|---|
onCopy | () => void | None | Called after the value is copied (e.g. to show a toast). |
title | string | `Copy ${value}` | Tooltip + accessible label. |
value | string | None | Value written to the clipboard. |
Inherits Button.Icon.Props, except children, onClick, title, aria-label. | |||
onCopyType
() => voidDefaultNone
Called after the value is copied (e.g. to show a toast).titleType
stringDefault
Tooltip + accessible label.`Copy ${value}`valueType
stringDefaultNone
Value written to the clipboard.Inherits
Button.Icon.Props, except children, onClick, title, aria-label.