---
imports:
  - "../dist/doc-copy.js"
---

### doc-copy

The `<doc-copy>` element is used to display a copy button that copies text to the clipboard.

#### Attributes

- `text`: The text to display on the button.

#### Example

```html
<doc-copy text="Copy this text"></doc-copy>
```

<doc-copy text="Copy this text"></doc-copy>
