Skip to main content
function CopyAddress(props: CopyAddressProps): Element;
A component that copies an address to the clipboard.

Parameters

ParameterTypeDescription
propsCopyAddressPropsThe props for the component.

Returns

Element The CopyAddress component.

Example

// Render the CopyAddress component with a custom label
function CopyAddressExample() {
  const { evmAddress } = useEvmAddress();
  if (!evmAddress) return null;
  return (
    <CopyAddress address={evmAddress} label="My EVM address" />
  );
}