You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
---
|
|
|
|
category: Components
|
|
|
|
type: Data Display
|
|
|
|
title: Comment
|
|
|
|
cols: 1
|
|
|
|
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 | Version |
|
|
|
|
| --- | --- | --- | --- | --- |
|
|
|
|
| actions | List of action items rendered below the comment content | Array<ReactNode> | - | |
|
|
|
|
| author | The element to display as the comment author | ReactNode | - | |
|
|
|
|
| avatar | The element to display as the comment avatar - generally an antd Avatar or src | ReactNode | - | |
|
|
|
|
| children | Nested comments should be provided as children of the Comment | ReactNode | - | |
|
|
|
|
| content | The main content of the comment | ReactNode | - | |
|
|
|
|
| datetime | A datetime element containing the time to be displayed | ReactNode | - | |
|