mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 11:40:04 +08:00
24 lines
863 B
Markdown
24 lines
863 B
Markdown
---
|
|
category: Components
|
|
type: Data Display
|
|
title: Comment
|
|
cols: 1
|
|
---
|
|
|
|
Single comment component.
|
|
|
|
## When To Use
|
|
|
|
Comments can be used to enable discussions on an entity for example page, blog post, issue or other.
|
|
|
|
## API
|
|
|
|
| Property | Description | Type | Default |
|
|
| -------- | ----------- | ---- | ------- |
|
|
| actions | List of action items rendered below the comment content | Array<ReactNode> | - |
|
|
| author | The element to display as the comment author | string\|ReactNode | - |
|
|
| avatar | The element to display as the comment avatar - generally an antd `Avatar` or src | string\|ReactNode | - |
|
|
| children | Nested comments should be provided as children of the Comment | ReactNode | - |
|
|
| content | The main content of the comment | string\|ReactNode | - |
|
|
| datetime | A datetime element containing the time to be displayed | string\|ReactNode | - |
|