Skip to main content

Interface: CommentObjectReplyProps

CommentObjectReply.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.

Hierarchy

Indexable

▪ [p: string]: any

Other props

Properties

WidgetProps

Optional WidgetProps: WidgetProps

Initial content

Default

{variant: 'outlined'}

Defined in

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


autoFocus

Optional autoFocus: boolean

Bind focus on mount

Default

false

Defined in

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


className

Optional className: string

Overrides or extends the styles applied to the component.

Default

null

Inherited from

WidgetProps.className

Defined in

packages/react-ui/src/components/Widget/index.tsx:45


editable

Optional editable: boolean

Disable component

Default

true

Defined in

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


onCancel

Optional onCancel: () => void

Type declaration

▸ (): void

Callback invoked after disccard save/edit

Returns

void

Defined in

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


onReply

Optional onReply: (comment: any) => void

Type declaration

▸ (comment): void

Callback invoked after reply

Parameters
NameType
commentany
Returns

void

Defined in

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


onSave

Optional onSave: (comment: any) => void

Type declaration

▸ (comment): void

Callback invoked after save/edit

Parameters
NameType
commentany
Returns

void

Defined in

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


text

Optional text: string

Initial content

Default

''

Defined in

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