UNPKG

semantic-ui-react

Version:
48 lines (37 loc) 1.3 kB
import * as React from 'react' import { SemanticShorthandContent } from '../../generic' 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 extends StrictCommentProps { [key: string]: any } export interface StrictCommentProps { /** 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