Skip to main content

LessonCommentObject

Interfaces

LessonCommentObjectProps

Indexable

[p: string]: any

Other props

Properties

PropertyTypeDescription
cacheStrategy?CacheStrategiesCaching strategies Default CacheStrategies.CACHE_FIRST
className?stringOverrides or extends the styles applied to the component. Default null
commentObject?SCCourseCommentTypeComment object Default null
commentObjectId?numberId of the comment object Default null
CommentObjectReplyProps?CardPropsProps to spread to single comment object CommentObjectReply Default {elevation: 0}
CommentObjectSkeletonProps?CardPropsProps to spread to single comment object skeleton Default {elevation: 0}
isEditing?(editing) => voidCallback on comment edit Default false
lessonObject?SCCourseLessonTypeFeed object Default null
lessonObjectId?numberId of lesson object Default null
onDelete?(comment) => voidCallback on delete the comment Default null

Functions

LessonCommentObject()

LessonCommentObject(inProps): Element

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

This component renders a comment item. Take a look at our demo component here

Import

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

Component Name

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

CSS

Rule NameGlobal classDescription
root.SCCommentObject-rootStyles applied to the root element.
comment.SCCommentObject-commentStyles applied to comment element.
avatar.SCCommentObject-avatarStyles applied to the avatar element.
author.SCCommentObject-authorStyles applied to the author section.
content.SCCommentObject-contentStyles applied to content section.
textContent.SCCommentObject-text-contentStyles applied to text content section.
mediaContent.SCCommentObject-media-contentStyles applied to media content section.
commentActionsMenu.SCCommentObject-comment-actions-menuStyles applied to comment action menu element.

Parameters

ParameterTypeDescription
inPropsLessonCommentObjectProps

Returns

Element


LessonCommentObjectSkeleton()

LessonCommentObjectSkeleton(props): Element

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

Import

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

Component Name

The name SCLessonCommentObject-skeleton-root can be used when providing style overrides in the theme.

CSS

Rule NameGlobal classDescription
root.SCLessonCommentObject-skeleton-rootStyles applied to the root element.

Parameters

ParameterType
propsany

Returns

Element