Skip to main content

PrivateMessageSnippetItem

Interfaces

PrivateMessageSnippetItemProps

Indexable

[p: string]: any

Properties

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

Default
null
message?SCPrivateMessageSnippetTypePrivateMessageItem Object

Default
null
onItemClick?() => voidCallback fired on item click
secondaryAction?ReactNodeItem secondary action (visible only on mobile view)

Functions

PrivateMessageSnippetItem()

PrivateMessageSnippetItem(inProps): JSX.Element

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

Import

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

Component Name

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

CSS

Rule NameGlobal classDescription
root.SCPrivateMessageSnippetItem-rootStyles applied to the root element.
username.SCPrivateMessageSnippetItem-usernameStyles applied to the username element.
badgeLabel.SCPrivateMessageSnippetItem-badgeLabelStyles applied to the badgeLabel element.
time.SCPrivateMessageSnippetItem-timeStyles applied to the time element.
menuItem.SCPrivateMessageSnippetItem-menu-itemStyles applied to the menu item element.
unread.SCPrivateMessageSnippetItem-unreadStyles applied to snippet item if there's an unread message.

Parameters

ParameterTypeDescription
inPropsPrivateMessageSnippetItemProps

Returns

JSX.Element

Source

packages/react-ui/src/components/PrivateMessageSnippetItem/PrivateMessageSnippetItem.tsx:82


PrivateMessageSnippetItemSkeleton()

PrivateMessageSnippetItemSkeleton(props): JSX.Element

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

Import

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

Component Name

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

CSS

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

Parameters

ParameterType
propsany

Returns

JSX.Element

Source

packages/react-ui/src/components/PrivateMessageSnippetItem/Skeleton.tsx:41