Skip to main content

PrivateMessageThread

Interfaces

PrivateMessageThreadProps

Extends

  • CardProps

Indexable

[p: string]: any

Properties

PropertyTypeDescriptionOverrides
className?stringOverrides or extends the styles applied to the component.

Default
null
CardProps.className
onNewMessageClose?(dispatch: any) => voidCallback fired when new message section is closed

Default
null
-
onNewMessageSent?(msg: any, isSingle?: boolean) => voidCallback fired when new message is sent

Default
null
-
onSingleMessageOpen?(open: boolean) => voidCallback fired when a single message section is open

Default
null
-
openNewMessage?booleanIf new message section is open

Default
false
-
threadObj?anyThread object or thread id
default null
-
type?SCPrivateMessageTypeThe Thread type-

Functions

PrivateMessageThread()

PrivateMessageThread(inProps): JSX.Element

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

This component renders the conversation between two users. Take a look at our demo component here

Import

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

Component Name

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

CSS

Rule NameGlobal classDescription
root.SCPrivateMessageThread-rootStyles applied to the root element.
subHeader.SCPrivateMessageThread-subheaderStyles applied to thread list subheader element.
section.SCPrivateMessageThread-sectionStyles applied to the list section
emptyMessage.SCPrivateMessageThread-empty-messageStyles applied to the empty message element.
newMessageHeader.SCPrivateMessageThread-new-message-headerStyles applied to the new message header section.
newMessageHeaderContent.SCPrivateMessageThread-new-message-header-contentStyles applied to the new message header content.
newMessageHeaderIcon.SCPrivateMessageThread-new-message-header-iconStyles applied to the new message header icon element.
newMessageContent.SCPrivateMessageThread-new-message-contentStyles applied to the new message content.
sender.SCPrivateMessageThread-senderStyles applied to the sender element.
receiver.SCPrivateMessageThread-receiverStyles applied to the receiver element.
autocomplete.SCPrivateMessageThread-autocompleteStyles applied to autocomplete element.
autocompleteDialog.SCPrivateMessageThread-autocomplete-dialogStyles applied to autocomplete dialog element.
editor.SCPrivateMessageThread-editorStyles applied to the editor element.

Parameters

ParameterTypeDescription
inPropsPrivateMessageThreadProps

Returns

JSX.Element

Source

packages/react-ui/src/components/PrivateMessageThread/PrivateMessageThread.tsx:141


PrivateMessageThreadSkeleton()

PrivateMessageThreadSkeleton(props): JSX.Element

API documentation for the Community-JS PrivateMessage Thread Skeleton component. Learn about the available props and the CSS API.

Import

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

Component Name

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

CSS

Rule NameGlobal classDescription
root.SCPrivateMessageThread-skeleton-rootStyles applied to the root element.
list.SCPrivateMessageThread-listStyles applied to the list element.

Parameters

ParameterType
propsany

Returns

JSX.Element

Source

packages/react-ui/src/components/PrivateMessageThread/Skeleton.tsx:40