Skip to main content

PrivateMessageThreadItem

Interfaces

PrivateMessageThreadItemProps

Indexable

[p: string]: any

Properties

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

Default
null
isHovering?() => voidGets mouse hovering status

Default
null
message?SCPrivateMessageThreadTypePrivateMessageItem Object

Default
null
mouseEvents?objectMouse Events to spread to the element
mouseEvents.onMouseEnter?() => void-
mouseEvents.onMouseLeave?() => void-
onMenuIconClick?() => voidAction triggered on menu icon click

Default
null
showMenuIcon?booleanMenu icon showed only for messages sent by logged user

Default
false

Functions

PrivateMessageThreadItem()

PrivateMessageThreadItem(inProps): JSX.Element

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

Import

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

Component Name

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

CSS

Rule NameGlobal classDescription
root.SCPrivateMessageThreadItem-rootStyles applied to the root element.
text.SCPrivateMessageThreadItem-textStyles applied to the message text element.
img.SCPrivateMessageThreadItem-imgStyles applied to the img element.
document.SCPrivateMessageThreadItem-documentStyles applied to the message file element.
video.SCPrivateMessageThreadItem-videoStyles applied to the message video element.
other.SCPrivateMessageThreadItem-otherStyles applied to other media type element.
messageTime.SCPrivateMessageThreadItem-message-timeStyles applied to the thread message time element.
menuItem.SCPrivateMessageThreadItem-menu-itemStyles applied to the thread message menu item element.
dialogRoot.SCPrivateMessageThreadItem-dialog-rootStyles applied to dialog root element.

Parameters

ParameterTypeDescription
inPropsPrivateMessageThreadItemProps

Returns

JSX.Element

Source

packages/react-ui/src/components/PrivateMessageThreadItem/PrivateMessageThreadItem.tsx:116


PrivateMessageThreadItemSkeleton()

PrivateMessageThreadItemSkeleton(props): JSX.Element

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

Import

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

Component Name

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

CSS

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

Parameters

ParameterType
propsany

Returns

JSX.Element

Source

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