semantic-ui-react
Version:
The official Semantic-UI-React integration.
46 lines (35 loc) • 1.25 kB
TypeScript
import * as React from 'react';
import { SemanticShorthandContent } from '../..';
import CommentAction from './CommentAction';
import CommentActions from './CommentActions';
import CommentAuthor from './CommentAuthor';
import CommentAvatar from './CommentAvatar';
import CommentContent from './CommentContent';
import CommentGroup from './CommentGroup';
import CommentMetadata from './CommentMetadata';
import CommentText from './CommentText';
export interface CommentProps {
[key: string]: any;
/** An element type to render as (string or function). */
as?: any;
/** Primary content. */
children?: React.ReactNode;
/** Additional classes. */
className?: string;
/** Comment can be collapsed, or hidden from view. */
collapsed?: boolean;
/** Shorthand for primary content. */
content?: SemanticShorthandContent;
}
interface CommentComponent extends React.StatelessComponent<CommentProps> {
Action: typeof CommentAction;
Actions: typeof CommentActions;
Author: typeof CommentAuthor;
Avatar: typeof CommentAvatar;
Content: typeof CommentContent;
Group: typeof CommentGroup;
Metadata: typeof CommentMetadata;
Text: typeof CommentText;
}
declare const Comment: CommentComponent;
export default Comment;