Skip to main content

PrivateMessageEditor

Interfaces

PrivateMessageEditorProps

Indexable

[p: string]: any

Properties

PropertyTypeDescription
autoHide?booleanHides this component

Default
false
className?stringOverrides or extends the styles applied to the component.

Default
null
error?booleanIf there's an error

Default
false
onErrorRemove?() => voidCallback fired when removing error

Default
null
send?(message?: string, file?: string) => voidCallback to send the message

Functions

PrivateMessageEditor()

PrivateMessageEditor(inProps): JSX.Element

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

Import

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

Component Name

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

CSS

Rule NameGlobal classDescription
root.SCPrivateMessageEditor-rootStyles applied to the root element.
messageInput.SCPrivateMessageEditor-cardStyles applied to the message input element.
mediaUploader.SCPrivateMessageEditor-media-uploaderStyles applied to the message media uploader section.
emojiSection.SCPrivateMessageEditor-emoji-sectionStyles applied to the emoji section.

Parameters

ParameterTypeDescription
inPropsPrivateMessageEditorProps

Returns

JSX.Element

Source

packages/react-ui/src/components/PrivateMessageEditor/PrivateMessageEditor.tsx:90


PrivateMessageEditorSkeleton()

PrivateMessageEditorSkeleton(): JSX.Element

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

Import

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

Component Name

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

CSS

Rule NameGlobal classDescription
root.SCMessageEditorSkeleton-rootStyles applied to the root element.

Returns

JSX.Element

Source

packages/react-ui/src/components/PrivateMessageEditor/Skeleton.tsx:34