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

### doc-comment

The `<doc-comment>` element is used to display a comment with an author and optional icon.

#### Attributes

- `text`: The text of the comment.
- `author`: The author of the comment.
- `icon`: The icon to display next to the author's name.

#### Example

```html
<doc-comment 
  text="This is a comment." 
  author="Author Name" 
  icon="mdi:account">
</doc-comment>
```

<doc-comment 
  text="This is a comment." 
  author="Author Name" 
  icon="mdi:account">
</doc-comment>
