# CopyData

```python
gradio.CopyData(···)
```

### Description

The gr.CopyData class is a subclass of gr.EventData that specifically carries information about the `.copy()` event. When gr.CopyData is added as a type hint to an argument of an event listener method, a gr.CopyData object will automatically be passed as the value of that argument. The attributes of this object contains information about the event that triggered the listener.

### Example Usage

```python
import gradio as gr
def on_copy(copy_data: gr.CopyData):
    return f"Copied text: {copy_data.value}"
with gr.Blocks() as demo:
    textbox = gr.Textbox("Hello World!")
    copied = gr.Textbox()
    textbox.copy(on_copy, None, copied)
demo.launch()
```

### Attributes

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `target` | `Block \| None` | `` | The component object that triggered the event. Can be used to distinguish multiple components bound to the same listener. |
| `data` | `Any` | `` |  |
