mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-20 10:01:17 +08:00

* docs: Add components overview page * fix detail * remove ContributorsList form overview page * fix components url * improve code style * remove extra file * fix detail * fix lint * fix lint * docs: Finish components overview page * fix lint * docs: Update cover * fix lint * update cover * update menu * improve overview page * refactor code * fix order * update title * add components count * fix overview page ssr bug * move less file * update title margin Co-authored-by: arvinxx <arvinx@foxmail.com>
988 B
988 B
category | type | title | cols | cover |
---|---|---|---|---|
Components | Data Display | Comment | 1 | https://gw.alipayobjects.com/zos/alicdn/uNYjrKkPv/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 | - | |
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 | - |