mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-05 05:29:01 +08:00
23 lines
830 B
Markdown
23 lines
830 B
Markdown
|
---
|
||
|
category: Components
|
||
|
type: Data Display
|
||
|
title: Comment
|
||
|
cover: https://gw.alipayobjects.com/zos/alicdn/ILhxpGzBO/Comment.svg
|
||
|
---
|
||
|
|
||
|
A comment displays user feedback and discussion to website content.
|
||
|
|
||
|
## When To Use
|
||
|
|
||
|
Comments can be used to enable discussions on an entity such as a page, blog post, issue or other.
|
||
|
|
||
|
## API
|
||
|
|
||
|
| Property | Description | Type | Default |
|
||
|
| --- | --- | --- | --- |
|
||
|
| actions | List of action items rendered below the comment content | Array \| slot | - |
|
||
|
| author | The element to display as the comment author | string\|slot | - |
|
||
|
| avatar | The element to display as the comment avatar - generally an antd `Avatar` or src | string\|slot | - |
|
||
|
| content | The main content of the comment | string\|slot | - |
|
||
|
| datetime | A datetime element containing the time to be displayed | string\|slot | - |
|