Skip to main content

Module: PrivateMessageComponent

Interfaces

Functions

PrivateMessageComponent

PrivateMessageComponent(inProps): JSX.Element

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

This component renders the private messages section. Take a look at our demo component here

Import

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

Component Name

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

CSS

Rule NameGlobal classDescription
root.SCPrivateMessageComponent-rootStyles applied to the root element.
snippetsBox.SCPrivateMessageComponent-snippets-boxStyles applied to the snippets box element.
threadBox.SCPrivateMessageComponent-thread-boxStyles applied to the thread box element.
hide.SCPrivateMessageComponent-hideStyles applied to the snippetBox or threadBox grid item element on mobile view.

Parameters

NameType
inPropsPrivateMessageComponentProps

Returns

JSX.Element

Defined in

packages/react-ui/src/components/PrivateMessageComponent/PrivateMessageComponent.tsx:80


PrivateMessageComponentSkeleton

PrivateMessageComponentSkeleton(props): JSX.Element

API documentation for the Community-JS Private Messages Skeleton Template. Learn about the available props and the CSS API.

Import

import {PrivateMessageComponentSkeleton} from '@selfcommunity/react-templates';

Component Name

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

CSS

Rule NameGlobal classDescription
root.SCPrivateMessageComponent-skeleton-rootStyles applied to the root element.
snippetsSection.SCPrivateMessageComponent-snippets-sectionStyles applied to the snippets section
threadSection.SCPrivateMessageComponent-thread-sectionStyles applied to the thread section

Parameters

NameType
propsPrivateMessageComponentProps

Returns

JSX.Element

Defined in

packages/react-ui/src/components/PrivateMessageComponent/Skeleton.tsx:50