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

Other props

Properties

PropertyTypeDescriptionInherited from
autoFocus?booleanBind focus on mount Default false-
className?stringOverrides or extends the styles applied to the component. Default nullWidgetProps.className
editable?booleanDisable component Default true-
EditorProps?EditorPropsInitial content Default {}-
medias?SCMediaType[]Initial media content Default ''-
onCancel?() => voidCallback invoked after disccard save/edit-
onReply?(comment, medias?) => voidCallback invoked after reply-
onSave?(comment, medias?) => voidCallback invoked after save/edit-
replyIcon?booleanProp to show a reply icon instead of the button Default false-
showAvatar?booleanProp to show user avatar Default true-
text?stringInitial content Default ''-
WidgetProps?WidgetPropsInitial content Default {variant: 'outlined'}-

Functions

CommentObjectReply()

CommentObjectReply(inProps): 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

Element