ant-design/components/comment/index.en-US.md

24 lines
955 B
Markdown
Raw Normal View History

2018-10-22 21:20:28 +08:00
---
category: Components
type: Data Display
title: Comment
cols: 1
---
2018-11-02 23:38:52 +08:00
A comment displays user feedback and discussion to website content.
2018-10-22 21:20:28 +08:00
## When To Use
2018-11-02 23:38:52 +08:00
Comments can be used to enable discussions on an entity such as a page, blog post, issue or other.
2018-10-22 21:20:28 +08:00
## API
| Property | Description | Type | Default | Version |
| --- | --- | --- | --- | --- |
| actions | List of action items rendered below the comment content | Array<ReactNode> | - | 3.11.0 |
| author | The element to display as the comment author | string\|ReactNode | - | 3.11.0 |
| avatar | The element to display as the comment avatar - generally an antd `Avatar` or src | string\|ReactNode | - | 3.11.0 |
| children | Nested comments should be provided as children of the Comment | ReactNode | - | 3.11.0 |
| content | The main content of the comment | string\|ReactNode | - | 3.11.0 |
| datetime | A datetime element containing the time to be displayed | string\|ReactNode | - | 3.11.0 |