Skip to main content

CommentObjectReply

Interfaces

CommentObjectReplyProps

API documentation for the Community-JS Widget component. Learn about the available props and the CSS API.

Import

import {Widget} from '@selfcommunity/react-ui';

Component Name

The name SCWidget can be used when providing style overrides in the theme.

CSS

Rule NameGlobal classDescription
root.SCWidget-rootStyles applied to the root element.

Extends

Indexable

[p: string]: any

Properties

PropertyTypeDescriptionInherited from
WidgetProps?WidgetPropsInitial content

Default
{variant: 'outlined'}
-
autoFocus?booleanBind focus on mount

Default
false
-
className?stringOverrides or extends the styles applied to the component.

Default
null
WidgetProps.className
editable?booleanDisable component

Default
true
-
onCancel?() => voidCallback invoked after disccard save/edit-
onReply?(comment: any) => voidCallback invoked after reply-
onSave?(comment: any) => voidCallback invoked after save/edit-
text?stringInitial content

Default
''
-

Functions

CommentObjectReply()

CommentObjectReply(inProps): JSX.Element

API documentation for the Community-JS Comment Object Reply component. Learn about the available props and the CSS API.

Import

import {CommentObjectReply} from '@selfcommunity/react-ui';

Component Name

The name CommentObjectReply can be used when providing style overrides in the theme.

CSS

Rule NameGlobal classDescription
root.CommentObjectReply-rootStyles applied to the root element.
comment.SCCommentObjectReply-commentStyles applied to comment element.
hasValue.SCCommentObjectReply-has-valueStyles applied to the comment element when editor is not empty.
avatar.SCCommentObjectReply-avatarStyles applied to the avatar element.
actions.SCCommentObjectReply-actionsStyles applied to the actions section.
buttonReply.SCCommentObjectReply-button-replyStyles applied to reply button element.
buttonSave.SCCommentObjectReply-button-saveStyles applied to save button element.
buttonCancel.SCCommentObjectReply-button-cancelStyles applied to the cancel button element.

Parameters

ParameterTypeDescription
inPropsCommentObjectReplyProps

Returns

JSX.Element

Source

packages/react-ui/src/components/CommentObjectReply/CommentObjectReply.tsx:110