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

onCopyOptional
Type() => void
DefaultNone
Called after the value is copied (e.g. to show a toast).
titleOptional
Typestring
Default`Copy ${value}`
Tooltip + accessible label.
valueRequired
Typestring
DefaultNone
Value written to the clipboard.
Inherits Button.Icon.Props, except children, onClick, title, aria-label.