UNPKG

923 BTypeScriptView Raw
1import * as React from 'react';
2export interface CommentProps {
3 /** List of action items rendered below the comment content */
4 actions?: React.ReactNode[];
5 /** The element to display as the comment author. */
6 author?: React.ReactNode;
7 /** The element to display as the comment avatar - generally an antd Avatar */
8 avatar?: React.ReactNode;
9 /** ClassName of comment */
10 className?: string;
11 /** The main content of the comment */
12 content: React.ReactNode;
13 /** Nested comments should be provided as children of the Comment */
14 children?: React.ReactNode;
15 /** Comment prefix defaults to '.ant-comment' */
16 prefixCls?: string;
17 /** Additional style for the comment */
18 style?: React.CSSProperties;
19 /** A datetime element containing the time to be displayed */
20 datetime?: React.ReactNode;
21}
22declare const Comment: React.FC<CommentProps>;
23export default Comment;