> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rebellapp.com/llms.txt
> Use this file to discover all available pages before exploring further.

# my.setClipboard

> Copy content to the clipboard.

Copy text to the device clipboard.

## Parameters

| Property | Type     | Required | Description                   |
| -------- | -------- | -------- | ----------------------------- |
| text     | String   | Yes      | Text to copy                  |
| success  | Function | No       | Callback on success           |
| fail     | Function | No       | Callback on failure           |
| complete | Function | No       | Callback that always executes |

## Code Example

```javascript theme={null}
my.setClipboard({
  text: 'Hello, world!',
  success: () => {
    my.showToast({ content: 'Copied!' });
  }
});
```
